SetControlProperty
Syntax
void SetControlProperty(char[] panel, char[] control, char[] property, long value);
void SetControlProperty(char[] panel, char[] control, char[] property, float value);
void SetControlProperty(char[] panel, char[] control, char[] property, char[] value);
Function
Sets a property of aPanel EditorActiveX control.For OCX panels properties can also be set. Therefore the property must be defined asproperty to be setin the OCX INI file. The panel is accessed by its individual panel name that is entered in thePanel Editor. It is easier to access color properties byMakeRGB.
Parameters
panel Panel name, restricted to 128 characters."" – references allloaded panelsIf you open a panel the first time, the panel is loaded.
If you close the panel, it remains loaded.
control
Name of the panel control, restricted to 128 characters."" – references all elements on the panel.
property
Name of the property
value
Value to be set (long, float or string value)
Return Values
—
SetControlProperty("Measurements", "StatusIndicator", "Caption", "running");SetControlProperty("Measurements", "StatusIndicator", "BackColor", MakeRGB(0,145,255));
SetControlBackColor | SetControlForeColor