onMenuClick_*


 

Availability

 

Windows, Mac OSX

 

Usage

 

mdm.Menu.Main.onContextMenuClick_*:Function

 

Parameters

 

None

 

Description

 

Executes when the user clicks on a menu item.

 

Notes

 

a) These events will only execute after the menutype has been set to "function".

 

b) If your Menu Item includes spaces, full stops or any of the ( ) { } , characters, they must be substituted with an underscore character in the function name. For example, if you File Menu Item entry is "Open File" the function would be: onMenuClick_Open_File()

 

c) If your File Menu Item entry is "Open File..." the function would be: onMenuClick_Open_File___()

 

d) The Underscore character is a substitute for a space or the ( ) { } , characters ONLY. No other characters are supported at this time.

 

e) Not supported on Transparent Projectors.

 

Example

 

mdm.Menu.Main.onMenuClick_Open_File = function(){

       mdm.Dialogs.prompt("Open File");

}