In addition to the control-frame widget attributes that manage an ActiveX control's relationship to the user interface, the control-frame COM object has several properties that map to corresponding control-frame widget attributes. These properties provide another way of getting to the same information and are listed in the following table.
Table 61. Control-frame attributes and properties
Widget attribute
COM object property
HEIGHT-PIXELS, HEIGHT[-CHARS]
Height
NAME
Name
WIDTH-PIXELS, WIDTH[-CHARS]
Width
X, COLUMN
Left
Y, ROW
Top
If one of these control-frame widget attributes changes, the corresponding COM object property changes, and the reverse is also true. For example, suppose CtrlFrame is the widget handle to a control-frame and chCtrlFrame is the component handle to the same control-frame. If you set CtrlFrame:X = 10, the value of chCtrlFrame:Left is set to 10. If you set chCtrlFrame:Width = 100 (100 pixels), the value of CtrlFrame:WIDTH-PIXELS is set to 100. In this case, CtrlFrame:WIDTH-CHARS also changes, but the exact value (number of characters) depends on the font.
For a complete list of the attributes and properties (as well as methods and events) associated with the control-frame, see the CONTROL-FRAME Widget entry in OpenEdge Development: ABL Reference.