Skip to content

psImage - cCJStatusBarPane

Determines the Image to be displayed in the pane when it is first displayed

Type: Property
Access: Read/Write
Data Type: String
Parameters: None

Syntax

Property String psImage
Access Type Syntax
Read Access: Get psImage to StringVariable
Write Access: Set psImage to StringVariable/Value

Description

psImage assigns the image to be used for this pane. psImage is the relative name of an image. When the program is run it will first check to see if the image is added to the program's resource and, if found, use it. If not, it will search for the image using the program's DFPath paths.

If the image's extension is .bmp, a bitmap image will be assumed. All other extensions (most likely .ico) assume an icon image.

Default is "".

Both text (psText) and an image may be assigned to a pane. If both are present, the image will appear to the left of the text. If piWidth is 0, the size of the pane will be auto-sized to fit the image and/or text.

psImage actually adds the image to the cCJCommandBarSystem object's image list and then assigns that imagelist ID to the pane. The imagelist ID will be the same as the pane's piID.

psImage is a design-time only property. It assigns the image to the pane, when the COM pane control is created. If it is changed after the COM pane is created, no change will occur. If you need to dynamically assign pane images you may do so using the piIconId property.