Control

Each control, whether TCE controls or third-party controls, which is inserted into a form generated by TCE is embedded into a Control object, so-called Control container. The Control object provides general functions, such as positioning a control or its visibility.

If you want to get the properties of a control through the Control object, the control must be addressed through the Object property of the Control object:

Example:

A button with the name "Button1" and it’s COM class name Button of the type library TCEButtons has been created on a form "F1". Now you can i.e. determine the background color of the button:

 

Dim Button As TCEButtons.Button

 

Button := F1.Button1.Object

 

MsgBox(Button.BackColor)

Here, the type-less pointer Object of the Control object "Button1" is assigned to the COM reference button. In the following, the properties of "Button1" are available through the COM reference Button.

 

 

More:

Properties and Methods (Control)

Events (Control)