openDialog()
Opens a dialog for simple configuration.
Synopsis
int openDialog(string panel [, dyn_string subst [, mapping
&result]]);
Parameters
Parameter | Description |
---|---|
panel | Name of the panel |
subst | Dollar parameter, see text |
&result | returned mapping, holding panel information |
Return value
The function returns 0 in normal operation or in the event of errors, -1.
Error
For example, if the function is used outside the attribute editor.
Description
Displays a Vision module in dialog mode with the specified panel. Only internal.
This function allows simple configuration only in the GEDI.
Example
The file "sp.ctl" in the directory "scripts/gedi" contains the CONTROL script that opens the panel for simple configuration of different attributes of the graphics elements. For example, from the above-mentioned file "sp.ctl", the panel "EP_foreCol" opens from the directory "panels/gedi" with the following statement.
main()
{
openDialog("gedi/EP_foreCol");
}
The panel "EP_foreCol" is opened from the directory "panels/gedi".
Assignment
Simple configuration
Availability
UI