
This method sets a property to a control.
Returns the following according to the situation:
The recommended convention is passing the control identifier directly:
Copy Code |
|---|
(Odcl_AxControl_SetColorProperty MyControlReference [as Reference] PropertyName [as String] nColor [as Color]) |
Copy Code |
|---|
(Odcl_AxControl_SetColorProperty MyControlReference [as Reference] PropertyName [as String] nRed [as Integer] nGreen [as Integer] nBlue [as Integer]) |
An alternative convention is to identify the control by providing the project file, the dialog name and the control name:
Copy Code |
|---|
(Odcl_AxControl_SetColorProperty ProjectFile [as String] DialogName [as String] ControlName [as String] PropertyName [as String] nColor [as Color]) |
Copy Code |
|---|
(Odcl_AxControl_SetColorProperty ProjectFile [as String] DialogName [as String] ControlName [as String] 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 |
|---|
; Change the property (Odcl_AxControl_SetColorProperty MyProject_MyForm_MyControl "SomeProperty" 255 128 0) |