KCL Design System - TKclDesignCompPopupMenu
|
|
Version 1.00
|
TKclDesignCompPopupMenu is
a special built PopupMenu for designment. It has the additional function of
handling Component Editor of components. You can design a KclDesignCompPopupMenu
normally in Delphi IDE, during the runtime, if possible, KclDesignCompPopupMenu
will add addtional Component Editor item to its top.
TKclDefDesignCompPopupMenu
descendant of TKclDesignCompPopupMenu.while its menu items are fixed. You
should not edit this component's menu item in Delphi IDE as all changes will
be discard during the runtime. KclDefDesignCompPopupMenu will automaticly
add several standard items to its menu: Edit (Cut, Copy, Paste, Delete, Select
All), Control (Bring to Front, Send to Back), Position (Align, Size, Scale)
and Filp Children (All, Selected). It will save you much time to avoid edit
this items yourself. But in order to build a flexible program, we recommend you
to use TKclDesignCompPopupMenu together with standard KclDesignActions.
Unit
KclDesignPopupMenu
Hierarchy
TObject - TPersistent - TComponent
- TMenu - TPopupMenu - TKclDesignCompPopupMenu
- TKclDefDesignCompPopupMenu
Properties
- CompEditor: IComponentEditor
Component Editor of current selected
control.
- SelectedComps: TComponentList
Current selected components.
Methods
constructor Create(AOwner:
TComponent); override;
procedure PopupBaseOnComp(BasedComponent:
TComponent; X, Y: Integer); virtual
;
Popup at X, Y and handle the Component
Editor of BasedComponent.
Demos
SimpleDesignPopupMenu
DfmBuilder
MQY Studio 2002.12