PureFORM Designer

The menu builder

With the menu builder you can build a menu for each window in your project.



The menu builder displays a real time test menu : Test > ; it will also display a warning if the menu construction is invalid.

Available features :

Text
Menu item text. The escape characters \t [TAB] and \q ["] are supported.
When entering a new item you have to enter the menu item text and type the enumeration text or use the [*] button to generate an enumeration based on the item text.
Icon
Menu item icon path (use [+] button to select an icon and [-] button to delete the icon path).
See note.
Enum
Menu item enumeration (you may use the [*] button to generate an enumeration based on the item text).
Shortcut
You can set a shortcut for the current menu item.
Enable Office style menus
Enable MS-Office style [PureCOLOR] or use #PB_Menu_ModernLook [PB4 functions].
See note.
Add / Insert / Replace / Delete / Clear
To add / insert / replace / delete a menu item, select it and press the button.
The [Clear] button clears the text / icon / enum / shortcut controls.
Title / Lvl 1 / Lvl 2 / Lvl 3 / Lvl 4
To chose a level, first select the menu item, and then press the adequate button. Note that all levels are not available at any time (it's context sensitive, depending on the selected menu title or menu item).
Separator
Press this button to insert a menu separator.
Up/down buttons
You can move a menu item up and down.

Example : how to build a simple menu

When you open the menu builder, only the 'Title' level is available.
Step 1
- let's name the menu title : type 'File' in the text box
- set the menu item enumeration (you may use the '*' button to generate it)
- once you have chosen the menu title and the enumeration, click 'Add'
- you have created the menu title ('File')
Step 2
- select 'File' (click on it, you'll see a selection bar)
- press button 'LVL1' (first menu level)
- add your text : 'Exit' in your example
- set the menu item enumeration (you may use the '*' button to generate it)
- press 'Add'
Step 3
- you just added a new 'Exit' menu item in the 'File' menu

Step 1
Step 2
Step 3


Note :
Icons and / or Office style require PureCOLOR V13+ or Purebasic V4.20+.
In the menu builder and in the forms, PureFORM uses PureCOLOR to display the icon menus even if you choose to use the genuine PB4 functions in the generated code.