Getting Started - "Hello World" project

Top  Previous  Next

settings

New project in 10 easy steps ;)

1. At the menu select: Project and then Project Settings settings
2. Enter a size for the display area of your project in Window Size - for example enter 320 x 200
3. Enter your own Window Title - e.g. enter "Hello World" or whatever you want. Click OK to finish Project settings.
4. Click on Text text button and click somewhere in project window.
5. Double click on newly added text object and enter "Hello World" in text field.
6. Now click on Script icon Scripts and insert NextPage() command to MouseUp script event.
7. Close both script and text properties dialog with OK button.
8. Click on Add a New Page newpage button to add new page. The page properties can be changed via dialog invoked by double clicking the selected page in Page List.
9. Repeat steps 4-7 but instead of "Hello World" enter for example "Exit" and instead of NextPage() insert Exit().
10. Run your project to see what it looks like! - Select menu Project and then Run (or just press F5).

Complete "Hello World" project can be found in MMB Samples folder (accessible also via List of Samples).

 


More Info on "Getting Started"

In the Project Settings window.

 

Window Size: When choosing a window size consider the following: Aim to keep your project window size to 1024 x 768 or less. This is the standard setting to suit a 15-17" monitors (and we can assume that this is the smallest monitor that will be used by others to view your program!). If you make your project window larger than 1024 x 768 and a user runs it on a computer with a 15" monitor with lower resolution, or for example sub-notebook with 10-12" then a portion of your program will not fit on their screen.

 

Standard Window: If you remove the "tick" your project won’t display the normal MS Windows style of window. That is, no title bar (e.g. "Hello World" or leave the default "Welcome!"), no exit button, and no border.

If you then place a tick in Window has Custom Shape you will be able to use the Outline Shaper, or B/W Mask options to change your projects display window from the standard rectangle to any other shape that you choose. Refer to the help on Outline Shaper or B/W Mask to learn how to use these advanced options.

 

Movable: If this option is selected AND your project window is smaller than the screen, the user can use the mouse to drag it to another position on the screen.

 

Style section:

 

Always on top: when this is ‘ticked’ your program will always be on top of any other programs that you run at the same time. In other words, your program will be visible over the top of any other running programs. A typical use for this would be a small Menu program that starts other programs, whereas you don’t want the new programs to cover over your menu!

 

Save last position in registry: if this option is selected MS Windows will remember the previous screen position of your program, the next time your program is run. It is advisable to give each of your programs a unique name for the registry key (default is MyApp) if the Save last position in registry option is used.

 

Background Mode section:

 

Full screen background: if your project window is smaller than the screen other programs or Windows icons can be seen behind it (and therefore selected by clicking them with the mouse). The ‘Full screen background’ fills the surrounding space with the color selected (Solid Fill) or a picture file (Image) and prevents the user from selecting any other background programs with the mouse.

 

Disable Alt-Tab in Win95: This works in Win95/98 but NOT on Win2000/WinXP/Vista!

By selecting this option you can prevent the user from pressing the ‘Alt’ + ‘Tab’ keys to switch between programs. Also works with ‘Ctrl’+’Alt’+’Delete’ keys!!

 

Cover Windows Taskbar: select this option to prevent the user from using the MS Windows taskbar to ‘Start’ or switch between programs.

 

If 256 colors selected: If a users computer is only set to display 256 colors you can use this option to run another file or simply to go directly to a specific page in the project. The page may simply display a message telling the user that the computer needs to be set to more than 256 colors to use the program! The separate file may be another project that is limited to using 256 colors.

 

Palette: Note: Only for 256 colors.

 

Graphics MMB: Optimized palette for most full-color pictures. Use this palette when creating pictures or images. Extract the palette in the Palette directory (palette.bmp) using your graphic editor, and then apply it on all images.

 

Windows Standard: Windows standard palette is recognized by all graphics applications. Use it whenever your projects deal with screen captures.

 

Note:

For added security also refer to the CBK_EXIT topic for capturing the Esc key!!!

 

(Written by Rodd edited by Odklizec)