InstallMenu
From Director Online Wiki
installMenu
| |
---|---|
Type: | method |
Version: | ? |
Language: | Lingo |
Dependencies: | none |
Links/Related | |
http://livedocs.macromedia.com/director/mx2004/release_en/07_me188.htm |
Installs a sytem-like horizontal menu bar at the top of the screen.
You can specify any (non-cascading?) menu structure in a field member. For a sample field member syntax see below.
Return value
void
Parameter
member fieldMember OR
integer memberNum
Syntax
installMenu( vMember )
installMenu vMember
installMenu( vMemberNum )
installMenu( 0 ) -- removes menu bar
Example Field Member Syntax
menu: &File
&New | put "new"
&Open | alert("open")
&Save| put "save"
menu: &Edit
Cut| beep
&Copy | beep 2
menu: &File
New/N | put "new"
Open/O | alert("open")
Save/S | put "save"
menu: &Edit
Cut/X | beep
(-
Copy/C | beep 2
See also
- menu
- the name of menu(whichMenu)
- the number of menus
- the name of menuItem(whichItem) of menu(whichMenu)
- the number of menuItems of menu(whichMenu)
- the checkmark of menuItem(whichItem) of menu(whichMenu)
- the enabled of menuItem(whichItem) of menu(whichMenu)
- the script of menuItem(whichItem) of menu(whichMenu)