This topic lists the properties that are common to several types of controls.

Control Properties

The following table briefly describes the control properties.

Property name Description

ID

Sets the numeric ID of the control. A sequential number is assigned by default. If you delete a control, and then add another in its place, you may want to give the newly created control the number of the one you deleted. The ID must be unique among controls and menu items on the form.

Name

Gives the control a descriptive name.

Caption

Specifies the text that is displayed for this control.

HorzGlue

Anchors a control horizontally on the form. You can select Left, Right, or Both. If you select Both, the control is resized when the form is resized.

VertGlue

Anchors a control vertically on the form.

You can select Top, Bottom, or Both. If you select Both, the control is resized when the form is resized.

Visible

Specifies whether the control is visible when the form is opened. This property can be changed from C/AL at runtime. Notice that if the control is a child control and the parent has Visible set to No, the child will not be visible, even if Visible is set to Yes.

ParentControl

Specifies the ID of a parent control, thereby turning the control into a child.

See Also