piWidth - cCJStatusBarPane
Determines the width of the pane. If zero, the pane is autosized
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer piWidth
| Access Type | Syntax |
|---|---|
| Read Access: | Get piWidth to IntegerVariable |
| Write Access: | Set piWidth to IntegerVariable/Value |
Description
piWidth determines the width of the pane in pixels. When piWidth is 0, the pane is auto-sized fit the existing image (psImage) and text (psText)
Default is 0, which auto-sizes the width.
If you change your text after the pane has been created and you wish it to be auto-sized, you should set piWidth after setting psText.
Procedure AssignTextToPane String sText
Set psText to sText
// after setting the text, force an autosize
Set piWidth to 0
End_Procedure