Creates a main menu for the application. The structure of the menu is defined as an indented text (with spaces) representing the menu's structure.
File
Open
Save
Edit
Command 1
Sub Command 1
Sub Command 2
Command 2
The tag image=
add an image at the left of the menu item. Images must be present in the Usine's package or defined as an absolute path and their names mustn't contain the comma character.
File
Open,image=open.png
Save,image=c:\users\test\images\save.png
To set a short cut to the menu item, set the shortcut=
tag.
File
Open,shortcut=Ctrl+O
Save,shortcut=Ctrl+S
Save All,shortcut=Shift+Ctrl+S
The allowed shortcuts modifiers and special characters are:
To avoid shortcut conflicts with the main Usine's shortcuts, activate the setup-panel-tab-expert disable-all-key-learn option
With the tag checkbox
the menu item is defined as a checkbox.
Options
Auto Save,checkbox
Snap to grid,checkbox
Lock,checkbox
Additional options can be mixed. They must be separated by commas ,
.
Options
Auto Save,checkbox,image=save.png,shortcut=Alt+Enter
Snap to grid,checkbox,image=snap.png,shortcut=Shift+Alt+Enter
If the caption of the menu is -
(hyphen) the menu item becomes a separator line.
File
Open
Save
-
Save All
version 6.0.240115
Edit All Pages