Applies to

RibbonComboBoxItem controls


The BoxWidth property specifies the width of the box of the ribbon combo box in PowerBuilder units. If you want to specify the width of the combo box (which is usually composed of the label, image, and box), you should use the Width property.


If the AutoScale property is set to True, this property will be ignored; if AutoScale is False, this property will take effect; if AutoScale is False and this property is set to an invalid value (such as 0), the width will be determined by the program.

In a painter

To set the box width of a control:

  • Enter the desired width in the Box Width edit box on the Other tab page of the control's Properties view, or select the control and resize it with your cursor.

In scripts

The BoxWidth property takes a long value. The following example sets the BoxWidth of a Ribbon ComboBox to 200 PBUs:

RibbonComboBoxItem lr_ComboBox

lr_ComboBox.AutoScale = false
lr_ComboBox.Width = 500
lr_ComboBox.BoxWidth = 200