User Tools

Site Tools


en:documentation:toolbox_editor

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:documentation:toolbox_editor [2014/06/15 14:11] – [Script debugger] pchen:documentation:toolbox_editor [2016/01/12 09:32] (current) – [Create the tool layout] admin
Line 19: Line 19:
 Special elements are the Events. This not add anything visible on the screen but allow you to write the require script to process an event.\\ Special elements are the Events. This not add anything visible on the screen but allow you to write the require script to process an event.\\
 Event are : Event are :
-  * Initialisation: Run once after you click the Apply button, or when the program start.+  * Initialization: Run once after you click the Apply button, or when the program start.
   * Activation: Run every time this tool box is show.   * Activation: Run every time this tool box is show.
   * Timer: Run at periodic interval, enter the interval in second when you select this event.   * Timer: Run at periodic interval, enter the interval in second when you select this event.
Line 37: Line 37:
 If you select an element in the tree and change one of it's property the Update button appear to allow to apply the change. If you select an element in the tree and change one of it's property the Update button appear to allow to apply the change.
  
-A script can be attached to following elements: Button, Combo box, Event.\\  +A script can be attached to following elements: Button, Menu, Combo box, Event.\\  
-When you select one of this elements in the tree the "Edit script" button appear. See below for the details.+When you select one of this elements in the tree the "Edit script" button appear. See below for the details.\\ 
 +You can add a function to the right click menu of the chart. To do that create the function for a button and check "Menu".
  
 When you are ready click the Apply button to show your elements on the tool box and compile the scripts.\\ When you are ready click the Apply button to show your elements on the tool box and compile the scripts.\\
Line 54: Line 55:
  
 The language to use is [[wp>Pascal_Script|Pascal Script]], based on [[wp>Object_Pascal|Object Pascal]].\\ The language to use is [[wp>Pascal_Script|Pascal Script]], based on [[wp>Object_Pascal|Object Pascal]].\\
-Define first the global variables, then the procedure and function if any, then the private variable, and finally the main code start with **begin** and end with **end.**+Define first the global variables, then the procedure and function if any, then the private variable, and finally the main code start with **begin** and end with **end.**\\ 
 +Read the [[script_example|script example]] page for a quick start.
  
 As the each script is specific to one event there is no possibility to have global variables across scripts. For example you cannot set a variable when a button is pressed and later use this variable in another button click.\\ As the each script is specific to one event there is no possibility to have global variables across scripts. For example you cannot set a variable when a button is pressed and later use this variable in another button click.\\
en/documentation/toolbox_editor.1402834302.txt.gz · Last modified: 2015/11/06 20:34 (external edit)