NumberOfPanes - cStatusBar
Returns the number of panes (that is, cStatusPane objects) that are in the statusbar
Type: Function
Return Data Type: Integer
Syntax
Function NumberOfPanes Returns Integer
Call Example
Get NumberOfPanes to IntegerVariable
Description
The NumberOfPanes function returns the number of panes (that is, cStatusPane objects) that are in the statusbar.
Although each pane is an object, it is described in the internal cCollection object, which you can access through the phoPanes property. This allows you to reference each object via its index.
This sample shows how to enumerate the panes and show the psLabel of each:
Get NumberOfPanes To icPane
For iPane from 0 To (icPane -1)
Get ObjectFromIndex of (phoPanes(self)) iPane To hoPane
Get psLabel of hoPane To sLabel
ShowLn `Pane ` iPane ` has a label of: ` sLabel
Loop
Return Value
The number of panes that are in the statusbar