StatePictureHeight – PB Docs 126

StatePictureHeight property for PowerScript controls


ListView, TreeView controls


The StatePictureHeight property specifies the display height
of all the state pictures. The size is specified in pixels.

If you choose the value (Default) in the painter, or set the
value to 0, PowerBuilder uses the height of the first picture in
the array as the height for all the pictures. The other choices
in the painter, 16 and 32, are standard pixel heights for icons.


In a painter

proc.png To set the state picture height:

  1. Select a value from the Height drop-down
    list on the State tab page of the control’s Properties

In scripts

The StatePictureHeight property takes an integer value. This
value can be set only before the first call to the AddStatePicture function
or after calling DeleteStatePictures. If this
value is set to 0, then the size of the first picture is used to
set the size of state pictures.

The following line sets the height for state pictures in a
ListView to 16 pixels.

For more information about scripting ListView controls, see “Using
ListView controls” in Application Techniques.

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