Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

Width – PB Docs 2022 – PowerBuilder Library

Width – PB Docs 2022

Width

property for PowerScript controls

Applies to

Visible controls, windows, PDFVisibleContent, PDFImage, PDFImportContent, PDFMultilineText, PDFRichText, PDFSharedText, PDFText

Description

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

Datatype

Long in PowerBuilder units (the maximum value is 32,765) for visible
controls and windows.

Double in point (pt) for PDFVisibleContent, PDFImage, PDFImportContent, PDFMultilineText, PDFRichText, PDFSharedText, and PDFText.

Usage

For the Ribbon ComboBox control, 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 (when available)

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:

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.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x