How to: |
You manipulate controls at run time using the Winform command. You can do the following:
To determine the value of a control property and assign it to a variable, use the following syntax
Winform Get form.control.property INTO variable [;]
or
variable = form.control.property ;
where:
Is the name of the form, determined by the (Name) property.
Is the name of the control, determined by the (Name) property.
Is the name of the property.
To set the value of a control property (except for colors), use the following syntax
[Winform Show_Inactive form;] Winform Set form.control.property TO setting [;]
or
[Winform Show_Inactive form;]form.control.property = setting ;
where:
Is required if the form is not the active form.
Is the name of the form, determined by the (Name) property.
Is the name of the control, determined by the (Name) property.
Is the name of the property.
Not all properties can be set dynamically. To see which properties you can set, see Form and Control Properties Reference.
Tip: You can easily generate the Winform Set syntax by selecting the property in the property sheet and dragging it to the Procedure Editor or the Event Handler editor. If you cannot drag the property into the Procedure Editor or the Event Handler editor, then the property is not dynamically "settable."
For information on how to set color properties, see Defining Colors for Your Form and Controls.
WebFOCUS |