peStretched - cCJAbstractCommandBar
Determines how a menubar or toolbar shares space with other bars in the same "row"
Type: Property
Access: Read/Write
Data Type: Integer
Parameters: None
Syntax
Property Integer peStretched
| Access Type | Syntax |
|---|---|
| Read Access: | Get peStretched to IntegerVariable |
| Write Access: | Set peStretched to IntegerVariable/Value |
Description
peStretched determines how a menubar or toolbar shares space with other bars in the same "row". The following values are allowed:
| Constant | Meaning |
|---|---|
| stNoStretch | the toolbar or menubar is not stretched (its width is determined by its number of items) and multiple toolbars can be added to the one row. |
| stStretch | the toolbar or menubar is stretched to take up the entire width of the panel and no other toolbars can be added to the row. |
| stStretchShared | the toolbar or menubar is stretched to take up the entire width of the panel but other toolbars can be added to the row. |
The default value for menubars (cCJMenuBar) is stStretch. The menubar should stretch to fill the entire row and no toolbars can share its space.
The default value for toolbars (cCJToolBar) is stNoStretch. Toolbars are not stretched and multiple toolbars may exist in the same row.
This property along with pbDockNextTo, peBarPosition and the order of the objects determines the initial position of a toolbar.