LeftText

Applies to

CheckBox, RadioButton controls

Description

If the LeftText property is enabled, the text for a CheckBox or RadioButton appears to the left of the button. If LeftText is not enabled, the text appears to the right of the control. You can also specify left or right alignment with the left and right StyleBar buttons.

Usage note

When the LeftText property is enabled and you align multiple CheckBoxes or RadioButtons to the left, PowerBuilder may align the text but not the boxes or buttons. This is because PowerBuilder aligns the complete control.

Usage

In a painter

To place text to the left:

  • Select the Left Text check box on the General page of the control's Properties view.

In scripts

The LeftText property takes a boolean value. The following line puts the text for a CheckBox to the left of the box:

cbx_1.LeftText = TRUE