ItemPictureIndex[ ] – PB Docs 126

ItemPictureIndex[ ] property for PowerScript controls

Controls

PictureListBox, DropDownPictureListBox, ListView

Description

The ItemPictureIndex property array identifies the pictures
associated with items in the control. This array is not updated
after initialization.

Usage

In a painter

proc.png To associate pictures with list items:

  1. Display the Pictures tab page in the control’s
    Properties view and add the pictures to be used in the control to
    the PictureName list.

    For ListView controls, add pictures to the PictureName lists
    on the LargePicture, SmallPicture, and State tab pages.

  2. Display the Items tab page in the Properties view
    and add text to the Item list.

  3. In the ItemPictureIndex list, add the index number
    for a picture (from the PictureName lists) on the appropriate lines
    for the items with which you want to associate pictures.

In scripts

You add pictures to controls with the AddPicture function
and add items to these controls with the AddItem or InsertItem functions.
You use picture indexes in the AddItem and InsertItem functions
to associate pictures with the items. See “Using Lists
in a Window” in Application Techniques for
more information.


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