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

AutoSize – PB Docs 2022 – PowerBuilder Library

AutoSize – PB Docs 2022

AutoSize

property for PowerScript controls

Applies to

MonthCalendar controls and grDispAttr objects within Graph
controls

Description

For MonthCalendar controls, when the AutoSize property is on, the
calendar is sized to hold a single month. If you change other properties
that affect size, such as TextSize and TodaySection, the calendar resizes
automatically both at design time and runtime.

For grDispAttr objects, the AutoSize property allows PowerBuilder to
change the font size of the text object automatically according to the
amount of text being displayed. If automatic sizing is not enabled, you
must set the text size.

Usage

In a painter

To enable automatic sizing of calendar controls:

  • Select the AutoSize check box on the General page in the
    Properties view.

To enable automatic sizing of text objects in graphs:

  1. Display the Text tab page of the control’s Properties
    view.

  2. Select a text object from the Text Object list.

  3. Select the AutoSize check box.

    If you clear the AutoSize check box for a specific text object,
    set the text size for that object by selecting a value from the
    TextSize list.

In scripts

The AutoSize property takes a boolean value.

For the MonthCalendar control, AutoSize is true by default. This
example turns autosizing off for a MonthCalendar control:

For grDispAttr objects, AutoSize can be set using the grDispAttr
object for each text component.

This example turns autosizing off for the graph control’s title and
then sets a specific text size.

This example turns autosizing off for the label of the Category Axis
of the graph control and then sets a specific text size.


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