The Default Menu
Options Object
By Matt Galanto
Index
The author of this extension makes no claims concerning the fitness of this extension for any purpose whatsoever, and makes no gurantees, written or implied, of its level of security and safety to authors or to end users in any respect. You agree to use this extension at your own risk and to hold the author harmless in any event.
The Default Menu Object allows you to execute all of the menu options of the default menu for applications. Each of the actions is simply the execution of the corresponding menu option. In addition, more control is given over toggling options (Play samples, Play musics, and Hide the menu).
Are Samples On?
Returns true is samples are currently enabled.
Are Samples in a Particular State?
Returns true if samples are in the given state. A state of 0
checks for samples being disabled, and and a state of 1 checks
for them being enabled.
Is Music On?
Returns true is music is currently enabled.
Is Music in a Particular State?
Returns true if music is in the given state. A state of 0 checks
for music being disabled, and a state of 1 checks for it being
enabled.
Is the Menu Hidden?
Returns true if the menu is currently hidden.
Is the Menu in a Particular State?
Returns true if the menu is in the given state. A state
of 0 checks for the menu being visible, and a state of 1 checks
for it being hidden.
File->New
This action restarts the application.
File->Password
This action brings up the password dialog if any frames have a
password set. Otherwise, it does nothing.
File->Pause
This action pauses the application and brings up the paused
dialog.
File->Players
This action brings up the players' controls dialog.
File->Quit
This action closes the application.
Options->Play samples->Toggle Samples
This action toggles the state of samples. If they were enabled,
they become disabled. If they were disabled, they become enabled.
Options->Play samples->Set Samples On
This action enables samples.
Options->Play samples->Set Samples Off
This action disables samples.
Options->Play samples->Set Samples State
This actions sets samples to the specified state. If the
specified state is 1, samples are enabled. If it is 0, they are
disabled.
Options->Play musics->Toggle Music
This action toggles the state of music. If it was enabled, it
becomes disabled. If it was disabled, it becomes enabled.
Options->Play musics->Set Music On
This action enables music.
Options->Play musics->Set Music Off
This action disables music.
Options->Play musics->Set Music State
This actions sets music to the specified state. If the
specified state is 1, music is enabled. If it is 0, it is
disabled.
Options->Hide the menu->Toggle Menu Visibility
This action toggles the state of the menu. If it was
hidden, it becomes visible. If it was visible, it becomes hidden.
Options->Hide the menu->Hide Menu
This action hides the menu.
Options->Hide the menu->Show Menu
This action shows the menu.
Options->Hide the menu->Set Menu Visibility
This actions sets the menu to the specified state. If the
specified state is 1, the menu is hidden. If it is 0, it is shown.
Help->Contents
This action displays the applications help file.
Help->About...
This action brings up the about dialog.
State of Samples
SamplesState(ObjectName)
Returns 1 if samples are enabled or 0 if they are disabled.
State of Music
MusicState(ObjectName)
Returns 1 if music is enabled or 0 if it is disabled.
State of Menu
MenuState(ObjectName)
Returns 1 if menu is hidden or 0 if it is visible.