Label – PB Docs 150

Label property for PowerScript controls

Controls

grAxis objects in Graph controls, ListViewItem objects, TreeViewItem
objects

Description

Within graphs

The Label property specifies the label of an axis of the graph.

Within ListView and TreeView controls

The Label property specifies the label associated with a ListViewItem
or TreeViewItem object.You cannot manipulate items in TreeView controls
in a painter. You must write scripts to add items to a TreeView.

Usage

In a painter

proc.png To specify an Axis label in a graph control:

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

  2. Select the desired axis from the Axis drop-down
    list.

  3. Enter the label text in the Label text field.

proc.png To specify labels for items in a ListView control:

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

  2. For each item, enter label text in the appropriate
    Text field.

In scripts

The Label property takes a string value. The following example
sets text for the label on the Values axis of graph gr_1.

To add or insert an item with a label into a ListView control,
use the AddItem or InsertItem functions.
For example, this line adds an item to ListView control lv_1,
specifying the label and picture index for the item:

To change the label, get the item from the ListView and set
the item’s Label property:

To add or insert items in a TreeView control, use the InsertItem, InsertItemFirst, InsertItemLast,
or InsertItemSort functions.

For more information, see “Using TreeView Controls” and “Using
ListView Controls” in Application Techniques.


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