Syntax
Public Function SetGUIObject(formID As String, controlName As String, prop_Id As ENUM_GUI_PROPERTY, prop_Value As Variant) As Boolean
Description
This function is used to set a property to a specific GUI control according to given prop_Id value.
Parameters
Key | Description |
formId | Form identifier, must be a number , value of type String. |
contorlName | Control identifier to set the property for it ; if it was an empty string, the property is for the form, value of type String. |
Prop_Id | The property that want to change it for the given GUI control, can be one of the ENUM_GUI_PROPERTY. |
Prop_Value | The value of the specified property , value of type Variant. |
Return value
Returns true if the GUI control has been sat to the specified property. Otherwise, returns false. In order to get an error, call GetLastError() function.
Sample
Public Sub main() dim frmID frmID = "3500" CreateVTLForm CSTR(frmID) , false CreateVTLControl CSTR(frmID) , "lblA" , GUI_LABEL SetGUIObject CSTR(frmID) , "lblA" , GUI_PROPERTY_CAPTION , "Label One"End Sub
See Also