Main Menu

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 

Additional Options

images

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

shortcuts

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:

  • Cmd+
  • Shift+
  • Alt+
  • Ctrl+
  • BkSp
  • Tab
  • Esc
  • Enter
  • PgUp
  • PgDn
  • End
  • Del
  • Home
  • Left
  • Up
  • Right
  • Down
  • F1..F12

To avoid shortcut conflicts with the main Usine's shortcuts, activate the setup-panel-tab-expert disable-all-key-learn option

checkbox

With the tag checkbox the menu item is defined as a checkbox.

Options
 Auto Save,checkbox
 Snap to grid,checkbox
 Lock,checkbox

mixed options

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

separator

If the caption of the menu is - (hyphen) the menu item becomes a separator line.

File
 Open
 Save
 -
 Save All

See also

version 6.0.240115

Edit All Pages