Index: doc-rnd/gpmi/rosetta/10_hello/index.html =================================================================== --- doc-rnd/gpmi/rosetta/10_hello/index.html (revision 799) +++ doc-rnd/gpmi/rosetta/10_hello/index.html (revision 800) @@ -35,10 +35,10 @@ ev_action that will be called when any of the actions registered by the script is executed. The script registers only one action, so it does not need to check which action caused the function to be called.
When the action event is called, use -dialog_log +dialog_log to append a log message.
In the "main" section of the script, bind event -ACTE_action +ACTE_action to our local function ev_action - this gets @@ -45,7 +45,7 @@ ev_action to be called when any of the actions registered by this script is executed.
Finally use -action_register +action_register to register the action:
When the action event is called, use -dialog_report +dialog_report to pop up a report dialog. First argument donates the name (title) of the window, the second is the text printed in the window.
In the "main" section of the script, bind event -ACTE_action +ACTE_action to our local function ev_action - this gets @@ -45,7 +45,7 @@ ev_action to be called when any of the actions registered by this script is executed.
Finally use -action_register +action_register to register the action:
When the action event is called, use -dialog_report +dialog_report to pop up a report dialog. First argument donates the name (title) of the window, the second is the text printed in the window.
Create a function ev_gui_init that will be called when the gui has been initialized - this is the right moment to register new menus in the GUI. Put the new menu item in the "Plugins/GPMI scripting/" menu by convention, and set hot key to ctrl+w. The menu should execute action hello().
In the "main" section of the script, bind event -ACTE_action +ACTE_action to our local function ev_action - this gets @@ -48,7 +48,7 @@ ev_action to be called when any of the actions registered by this script is executed. Also bind ev_gui_init so that the new menu can be safely created.
Finally use -action_register +action_register to register the action:
When the action event is called, first set up:
In the "main" section of the script, bind event -ACTE_action +ACTE_action to our local function ev_action - this gets @@ -64,7 +64,7 @@ ev_action to be called when any of the actions registered by this script is executed.
Finally use -action_register +action_register to register the action: