KCL Design System - TKclCompPalleteToolbar
|
|
Version 1.00
|
TKclCompPalleteToolBar is
the component to construct the Delphi-like Component Palette (like only,
not "the same") tool bar. This control is often used together with TKclCompPalleteTab
.
Unit
KclClassesMan
Hierarchy
TObject - TPersistent - TComponent
-TControl - TWinControl - TToolWindow - TToolbar - TKclToolbar - TKclPalleteToolbar
- TKclCompPalleteToolbar
Properties
- ClassList: TKclDesignClassList
The classes you want to display on
the Toolbar. This is the most important property of this component. At the
initialization part of your program (for example, OnFormShow event), you
should write:
AClassList.Images := ClassesImageList;
KclCompPalleteToolBar1.ClassList := AClassList;
Set ClassList property will also set Toolbar's Images property to ClassList.Images.
Do remeber to set ClassList property before show the Toolbar.
- CurrClass: TComponentClass (ReadOnly)
Current selected class on Toolbar.
- Deselector: TKclClassToolBtn (ReadOnly)
The "deselect arrow icon" (like the
one in Delphi IDE) ToolButton.
- SelectedButton: TKclClassToolBtn (ReadOnly)
The ToolButton pressed down by the
users, stands for a class.
The class palette KclCompPalleteToolbar
displays, such as 'Standard', 'Additional' and so on. Change this property
to change the class ToolButtons on the Toolbar.
When current Pallete property equals
to PalleteAllStr, then all classes in ClassList will be displayed despite
their palette belonged.
Whether show "deselector arrow icon"
on Toolbar.
Methods
constructor Create(AOwner:
TComponent); override;
procedure DeselectComps;
Deselect component class, on the Toolbar,
the "deselector" will be down, other button will be all lifted up.
Refresh display.
Demos
DfmBuilder
MQY
Studio 2002.12