View – PB Docs 150

View property for PowerScript controls

Controls

ListView controls

Description

A ListView has four ways to display its items:

  • Large icon view

    Items are arranged from left to right and the user can move
    items around when drag and drop is enabled. Each item’s
    picture is taken from the large picture list, and the item label
    is below the picture.

  • Small icon view

    Same as large icon view except each item’s picture
    is taken from the small picture list, and the item label is to the
    right of the picture.

  • List view

    Items are arranged from top to bottom. Each item’s
    picture is taken from the small picture array.

  • Report view

    Items are arranged from top to bottom with one or more columns
    of information for each item. You must write a script to set up
    the columns.

Usage

In a painter

proc.png To select the view type:

  1. Select the desired view type from the View
    drop-down list on the General page of the control’s Properties
    view.

In scripts

The View property takes a value of the ListViewView enumerated
datatype.

The following line specifies that small pictures appear for
the items in the ListBox:


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