Label

[property icon] Label$

Label for the control

String property

Applies to: Button , CheckBox , ComboBox , Edit , Gauge , Graph , Grid , HTML , KCMLEdit , List Box , OCX , Picture Button , PlaceHolder , Radio , Tree

Introduced in KCML version 5.03


>

Label

The Label$ property is used to label a KCML edit control. The label appears on the left-hand side of the control with the editable region occupying the remainder of the space. If necessary, the label is truncated to prevent the editable area becoming too small. In appearance, using the Label$ property is equivalent to having a static text control to the left of an edit control.

The real benefit of the Label$ is found when the KCML edit is part of an EditGroup. Within such a group, the editable portions of the KCML edit controls are automatically aligned, based on the longest label. If there is room, the editable area can be extend beyond the notional area of the control although it will always be bound by the group container. This makes it much easier to allow for language translations that produce much longer labels, without having to leave large amounts of space between the label and the editable area for the worst case.

.EditControl1.label$ = "&Name:"

See also

Button methods, properties and events. CheckBox methods, properties and events. ComboBox methods, properties and events. Edit methods, properties and events. Gauge methods, properties and events. Graph methods, properties and events. Grid methods, properties and events. HTML methods, properties and events. KCMLEdit methods, properties and events. List Box methods, properties and events. OCX methods, properties and events. Picture Button methods, properties and events. PlaceHolder methods, properties and events. Radio methods, properties and events. Tree methods, properties and events.