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

TextSize – PB Docs 2019 – PowerBuilder Library

TextSize – PB Docs 2019

TextSize

property for PowerScript controls

Applies to

Controls that can display text

Description

The TextSize property specifies the point size of the text in the
control.

Usage

In the painter, specify a positive value as the point size, but in
scripts, specify a negative value. This is for the backward compatibility;
the size is stored as a negative value; for example, 10-point text size is
stored as -10.

This property does not work in MonthCalendar controls on the Windows
7/8.1/10 operating system.

In a painter

To set the size of all the text in a control:

  • Display the Font tab page of the control’s Properties view and
    select the desired point size from the Size drop-down list, or select
    the control and then set the point size using the Font Size list box
    on the StyleBar.

To set the size of a text object in a graph control:

  1. Display the Text tab page of the graph control’s Properties view
    and select the desired text object from the Text Object list.

  2. Select the desired point size from the TextSize list.

To set the size of text in a menu:

  • Display the Appearance tab page of the top-level menu object’s
    Properties view, select contemporarymenu! from the Menu Style list,
    and select the desired point size from the TextSize list.

    This property does not apply to menu items in the menu bar,
    which have a fixed size of 8 points.

In scripts

The TextSize property takes an integer value that indicates the
point size. The following example sets the point size of a static text
control:

This example sets the point size of the label of the Value axis of a
graph control:


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