HEScript script engine.
HEScript provides you with two functions to do so:
procedure SetUIProp(const id, propname, propval: String);
function GetUIProp(const id, propname: String): String;
In ExeOutput, a control's ID is defined by the name of the parent component followed immediately by the name of the control (without space between them).
For instance, for a
Timer1 control that belongs to the
timer1 component, its ID would be
The Home button's caption will be changed by the following HEScript code:
procedure Procedure1; begin SetUiProp("ribbon1BHome", "Caption", "TEST!!"); ShowMessage("This is Procedure 1 from UserMain script. I changed the Home button caption!"); end;
In the code above,
ribbon1BHome indicates that we should modify a property of the UI control
BHome that belongs to the
ribbon1 UI component.
Caption is the name of the property and the last parameter is the value we want to set.
All properties of a control listed in the Properties Editor can be modified programmatically (Caption, Visible, Enabled...).
The following HEScript code will hide the control named
procedure Procedure2; begin SetUIProp("ribbon1UserLabel", "Visible", "False"); end;
The same for making it visible:
procedure Procedure2; begin SetUIProp("ribbon1UserLabel", "Visible", "True"); end;