phoButtons - cToolbar
Stores the object-handle of the internal cCollection object that holds the object-handles of the child cToolbarButton objects
Type: Property
Access: Read/Write
Data Type: Handle
Parameters: None
Syntax
Property Handle phoButtons
| Access Type | Syntax |
|---|---|
| Read Access: | Get phoButtons to HandleVariable |
| Write Access: | Set phoButtons to HandleVariable/Value |
Description
phoButtons stores the object-handle of the internal cCollection object that holds the object-handles of the child cToolbarButton objects.
As you create or destroy cToolbarButton objects, the cToolBar maintains the list in an internal cCollection object. The phoButtons property is set automatically, but you can read it if you want to traverse the list of buttons. For example, this is how you might display the labels of all the buttons:
Get NumberOfButtons To icButton
For iButton from 0 To (icButton -1)
Get ObjectFromIndex of (phoButtons(self)) iButton To hoButton
Get psLabel of hoButton To sLabel
ShowLn `Button ` iButton ` has a label of: ` sLabel
Loop
Default is 24.