Width

Applies to

Visible controls, windows

Description

The Width property specifies the width of a control or window in PowerBuilder units.

Usage

In a painter

To set the width of a control or window

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

In scripts

The Width property takes an integer value specifying the width of an object in PowerBuilder units. The following example sets the width of a DataWindow control dw_1:

dw_1.Width = 750

It is illegal to resize a minimized or maximized sheet or frame. Changing the Width or Height property for a minimized or maximized window is not supported.