. . C++Builder 6, . , ..
CoolBar , (bands). ToolBar : , .. CoolBar. , . .
7. CoolBar.
1. , .
2. ImageList1 Program Files\Common Files\Borland Shared\Images\Buttons : fldropen − 0, filesave − 1, print − 2, monitor − 3, arrow1ur − 4, arrow1r − 5, arrow1d − 6, arrow1l − 7, arrow1u − 8.
3. CoolBar. Images ImageList, Hint − CoolBar, ShowHint − true.
4. CoolBar ToolBar. CoolBar.
5. , ToolBar. . : Bands, CoolBar , , . : 0 − TCoolBand. Text − 1, ImageIndex − 0.
6. Images ToolBar ImageList1. , ImageIndex 0, 1, 2, 3, Wrap − true.
7. CoolBar ToolBar. . Text − 2, ImageIndex − 4.
8. Images ToolBar ImageList. , ImageIndex 5, 6, 7, 8.
9. , CoolBar, , . , ToolBar . , .
|
|
10. CoolBar Edit. Text CoolBar 1, 2.
11. 2 1, .
12. . , CoolBar .
. Control . Break , CoolBar, . Break = true, Break = false. MinHeight MinWidth . FixedSize , . FixedSize = false, .. . , FixedSize = true.
BandMaximize CoolBar , , : bmNone − , bmClick − , bmDblClick − . bmClick, .
FixedOrder, true, .
Vertical . Vertical = false, .
ControlBar. Drag&Doc.
8. ControlBar.
1. . ControlBar ToolBar Edit. , , ControlBar, , Drag&Doc.
2. ToolBar , ToolBar − , . . .
3. , ControlBar, DragMode = dmAutomatic DragKind = dkDoc. Drag&Doc. . .
4. ControlBar RowSize RowSnap . , RowSize , , RowSnap .
5. , AutoDrag , ( true), ControlBar, , AutoDrag = true .
|
|
. , (, , ), .