In latest version 0,7,9,4 I added a new function to customize the context menu:
Code:
ContextMenu( configString );
The "configString" parameter is a text with all options of the menu and the code to execute in every option, with the syntax:
Code:
"option, code, option, code, ..., ..., option, code"
For example, to create one option to toggle fullscreen mode:
Code:
ContextMenu(" 'Fullscreen', 'ToolCommand(3);' ");
You can use the single quote ' to delimitate substrings into all main string.
If the name of the option is '-' then is created a separator in the menu, and it's not required to define a code for this option. Example:
Code:
ContextMenu("'Fullscreen', 'ToolCommand(3);','-','About info...','Show("","",1,"infowindow");'");
You can define this function in the script for example by means of a timer:
settimer=tim0,1,0.1,"ContextMenu("'Fullscreen', 'ToolCommand(3);','-','About info...','Show("","",1,"infowindow");'");";
This way, it's possible to create an information window (image) and show this image with a menu option.
regards!