SmallPictureWidth
property for PowerScript controls
Applies to
ListView controls
Description
The SmallPictureWidth property specifies the display width of all
the pictures in the Small Icon view of the ListView control. The size is
specified in pixels.
If you choose the value (Default) in the painter, or set the value
to 0, PowerBuilder uses the width of the first picture in the array as the
width for all the pictures. The other choices in the painter, 16 and 32,
are standard pixel widths for icons.
Usage
In a painter
To set the small picture width:
-
Select a value from the Width drop-down list on the Small
Picture tab page of the control’s Properties view.
In scripts
The SmallPictureWidth property takes an integer value. This value
can be set only before the first call to the AddSmallPicture function or
after calling DeleteSmallPictures. If this value is set to 0, then the
size of the first picture is used to set the size of small
pictures.
The following line sets the width for small pictures in a ListView
to 16 pixels.
|
1 |
lv_1.SmallPictureWidth = 16 |
For more information about scripting ListView controls, see the section called “Using
ListView controls” in Application Techniques.