Contents | Index | < Browse | Browse >
xMENU MenuName ItemName SubItemName Shortcut
This is a menu.
MenuName : The Menu Titles shown in the screen bar.
ItemName : An Item in the above Menu (or BARLABEL)
SubItemName : A SubItem in the above Item of the above Menu.
ShortCut : A letter to be used as a short cut (Amiga Key + Letter)
Example : Run Gui Source
You MUST define a MenuName and an ItemName in each xMENU
command.
If there is no SuItemName declared, i.e. if you write ""
(empty string) then the Event is a MenuItem.
If you give a SubItemName, then the Event is a SubItem. In
this case, if there is no ItemName by that name, it will be
created.
You may give a "" for shortcut also.
If you give the "BARLABEL" keyword instead of the item name, then
the item will be a divider line.
You can also have icons in your menus!
All you have to do is declare the ItemName or SubItemName
you want to be an icon by preceding it with a # character.
example :
xMENU Project #MyIcon "" ""
- will put the icon named MyIcon.info in the Project menu.
Note that the MenuName can NOT be an icon.
Menus may be a little confusing at first, till you get it.
Try them out in all combinations and see what happens.