
This method sets a property to a control.
Returns the following according to the situation:
Copy Code |
|---|
(Odcl_AxObject_SetColorProperty MyOleObject [as OleObject] PropertyName [as String] nColor [as Color]) |
Copy Code |
|---|
(Odcl_AxObject_SetColorProperty MyOleObject [as OleObject] PropertyName [as String] nRed [as Integer] nGreen [as Integer] nBlue [as Integer]) |
See the property of interest to know what string to pass.
Not all properties can be set.
Copy Code |
|---|
; Get the ActiveX object (Setq rObject (Odcl_AxControl_GetOleObject MyProject_MyForm_MyControl)) ; Change the property (Odcl_AxObject_SetColorProperty rObject "SomeProperty" 255 128 0) ; Release the handle to the ActiveX (Odcl_AxObject_Close rObject) |