Menu bar and quick access toolbar

Navigation:  Tutorial: The Form Editor > The IDE >

Menu bar and quick access toolbar

Version 1.0.0

The menu bar contains the three menu items Script, Edit and Help.

 

Script

Below this menu item, you will find the functions Generate code, Check syntex and Execute. These functions are used to automatically create, review and test the form.

 

Generate code

This function is used to automatically create a code base on which eventually the remaining functionality can be developed. In this way you can create the functions that are called automatically when a form is started or closed. Optionally, this load values ​​from a variable or stored in the variable. In addition, the default buttons can be defined for the OK or Cancel function of the form.

 

Hinweis

Note:

When using this function, the existing code is deleted and only the code base is newly added. You should therefore only use this function at the outset of the code development.

 

With the option Load values on startup you can define, that the specified variable is read on start of the farm. If this value contains a certain syntax, the properties of form elements can be set automatically to a specific value. The Save values on close option savest the properties of all form elements when the form is colsed in the same syntax and the same variable.

 

11.1.1 - CodeGenerieren

Generate code

 

The content of the variables here has the syntax Element.Property=Value,[…]. If the variable should be read on start of the form to set specific properties, you must ensure yourself that the content of a variable is correct before calling the form in the Client Command, e.g., with the help of commands of the string category (see Category strings). If the properties of the form elements are saved upon exiting the form, exactly the same syntax is used; this makes further processing of the data relatively easy.

 

For example, to set the text of an edit element with the name of Edit1 to 'Aagon' and to enable a radio button with the name Radio1, you have to set the variable content to the following value:

 

         Edit1.Text=Aagon,Radio0.Checked=true

 

In the Object Inspector you can view the name of an element and its properties.

 

In addition to loading and saving properties of form elements, the OK button and the Cancel button can be defined. For this purpose, all available buttons are listed in the drop-down list. The difference between the two buttons is that the OK button closes the form with the result 0 after having saved all properties of the form elements in the specified variable, while the Cancel button closes the form with the result 1 and does not save the properties of the form element.

 

Check syntax

With this function you can check if the syntax of the source code is correct. If this is the case, a short information that the content is syntax is correct is displayed. Otherwise, an error message is displayed, indicating the location and type of error.

 

Start

With this function, the form can be executed in the way as it will be later displayed. The functionality can be tested here, with one exception: If a form element uses a variable to which a value has been dynamically assigned (i.e., another value than the default value) in the Client Command, this value is not available at this stage. This is due to the fact that the Execute function merely executes the form and not the entire Client Command; as a result the variable cannot be set to the required value.

 

Edit

In this menu item, you will find the familiar functions Undo, Repeat, Copy, Cut, Paste, Delete, Select all, Browse and Replace. The functions Undo, Redo, Browse and Replace are however only available in the source code view (see Workspace).

 

Help

In this menu item, you will see the functions Show Command reference and Show alignment range.

 

With Show Command reference you can access the command reference in which all available classes, their methods and properties as well as procedures and constants are listed. These are listed on the left-hand side, subdivided logically into units. If you want to use a method, procedure or constant, you have to add the corresponding unit in the uses guideline in the code section. Enter the unit manually in the code section, or select the corresponding unit and click Add.

 

Debug

Below that menu there are the functions trace into and step over. Both are activated when debugging-mode is selected.

 

Trace into
Performs debug step into action in the current active script. RunMode is used only if the project is not running, to specify which script will be used to start execution.
 
Step over
Performs debug step over action in the current active script. RunMode is used only if the project is not running, to specify which script will be used to start execution.

 

The function Show alignment range opens a small window with which you can control the alignment of the currently selected objects. In this case you have to select the affected elements and then click on the corresponding button of the alignment scale. However, this affects only objects in the form view (see Workspace).

Last change on 28.11.2014