| Class | Fox::FXToolBar |
| In: |
rdoc-sources/FXToolBar.rb
|
| Parent: | FXPacker |
Toolbar control.
| ID_UNDOCK: | Undock the tool bar |
| ID_DOCK_TOP: | Dock on the top |
| ID_DOCK_BOTTOM: | Dock on the bottom |
| ID_DOCK_LEFT: | Dock on the left |
| ID_DOCK_RIGHT: | Dock on the right |
| ID_TOOLBARGRIP: | Notifications from tool bar grip |
| dockingSide | [RW] | Docking side, one of LAYOUT_SIDE_LEFT, LAYOUT_SIDE_RIGHT, LAYOUT_SIDE_TOP or LAYOUT_SIDE_BOTTOM [Integer] |
| dryDock | [R] | Parent window when the tool bar is docked [FXComposite] |
| wetDock | [R] | Parent window when the tool bar is undocked (or "floating") [FXComposite] |
Return an initialized, stationary FXToolBar instance. The tool bar can not be undocked.
| p: | the parent window for this tool bar [FXComposite] |
| opts: | tool bar options [Integer] |
| x: | initial x-position [Integer] |
| y: | initial y-position [Integer] |
| w: | initial width [Integer] |
| h: | initial height [Integer] |
| pl: | internal padding on the left side, in pixels [Integer] |
| pr: | internal padding on the right side, in pixels [Integer] |
| pt: | internal padding on the top side, in pixels [Integer] |
| pb: | internal padding on the bottom side, in pixels [Integer] |
| hs: | horizontal spacing between widgets, in pixels [Integer] |
| vs: | vertical spacing between widgets, in pixels [Integer] |
Return an initialized, floatable FXToolBar instance. Normally, the tool bar is docked under window p. When floated, the tool bar can be docked under window q, which is typically an FXToolBarShell window.
| p: | the "dry dock" window for this tool bar [FXComposite] |
| q: | the "wet dock" window for this tool bar [FXComposite] |
| opts: | tool bar options [Integer] |
| x: | initial x-position [Integer] |
| y: | initial y-position [Integer] |
| w: | initial width [Integer] |
| h: | initial height [Integer] |
| pl: | internal padding on the left side, in pixels [Integer] |
| pr: | internal padding on the right side, in pixels [Integer] |
| pt: | internal padding on the top side, in pixels [Integer] |
| pb: | internal padding on the bottom side, in pixels [Integer] |
| hs: | horizontal spacing between widgets, in pixels [Integer] |
| vs: | vertical spacing between widgets, in pixels [Integer] |
Dock the bar against the given side, after some other widget. However, if after is -1, it will be docked as the innermost toolbar just before the work-area, while if after is 0, if will be docked as the outermost toolbar.
| side: | side of the parent window against which to dock the tool bar, one of LAYOUT_SIDE_TOP, LAYOUT_SIDE_BOTTOM, LAYOUT_SIDE_LEFT or LAYOUT_SIDE_RIGHT [Integer]. |
| after: | sibling window (i.e. inside the parent) after which to dock this tool bar [FXWindow]. Also see exceptions described above for the cases when after is 0 or -1. |
Set parent when docked. If it was already docked, reparent under the new docking window.
| p: | new "dry dock" parent window for this tool bar [FXComposite] |
Set parent when floating. If it was already undocked, then reparent under the new floating window.
| q: | new "wet dock" parent window for this tool bar [FXComposite] |