Changeset 197 for Docking/CoolDocking/Managers
- Timestamp:
- Mar 16, 2011, 7:47:27 AM (14 years ago)
- Location:
- Docking/CoolDocking/Managers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerRegions.pas
r195 r197 57 57 PanelHeader := TCDPanelHeader.Create(nil); 58 58 PanelHeader.Header.ManagerItem := Self; 59 PanelHeader.Header.OnMouseDown := DockPanelMouseDown; 60 PanelHeader.Header.Title.OnMouseDown := DockPanelMouseDown; 59 61 60 62 Splitter := TSplitter.Create(nil); 61 63 with Splitter do begin 64 Width := 3; 65 Height := 3; 62 66 //Parent := Panel; 63 67 //Color := clRed; … … 67 71 destructor TCDManagerRegionsItem.Destroy; 68 72 begin 73 PanelHeader.Parent := nil; 74 PanelHeader.Free; 75 Splitter.Parent := nil; 76 Splitter.Free; 77 Control.Parent := nil; 69 78 inherited Destroy; 70 79 end; … … 111 120 NewItem.PanelHeader.Header.Icon.Picture.Assign((Control as TForm).Icon); 112 121 NewItem.PanelHeader.Parent := DockSite; 122 NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption; 113 123 114 124 NewItem.Control := Control; … … 163 173 begin 164 174 ManagerItem := FindControlInPanels(Control); 165 if Assigned(ManagerItem) then 175 if Assigned(ManagerItem) then begin 166 176 Control.RemoveHandlerOnVisibleChanged(ManagerItem.VisibleChange); 177 end; 167 178 168 179 DockItems.Remove(ManagerItem); -
Docking/CoolDocking/Managers/UCDManagerTabsPopup.pas
r194 r197 48 48 TCDStylePopupTabs = class(TCDManagerTabs) 49 49 public 50 TabControl: TTabControl;51 TabImageList: TImageList;52 50 AutoHideEnabled: Boolean; 53 51 AutoHide: TCDAutoHide; 54 procedure TabControlMouseLeave(Sender: TObject); 55 procedure TabControlChange(Sender: TObject); 56 procedure TabControlMouseDown(Sender: TObject; Button: TMouseButton; 57 Shift: TShiftState; X, Y: Integer); 58 procedure TabControlMouseUp(Sender: TObject; Button: TMouseButton; 59 Shift: TShiftState; X, Y: Integer); 52 PopupPanel: TPanel; 60 53 constructor Create(ADockSite: TWinControl); 61 54 destructor Destroy; override; … … 174 167 { TCDStylePopupTabs } 175 168 176 procedure TCDStylePopupTabs.TabControlMouseLeave(Sender: TObject);177 begin178 179 end;180 181 procedure TCDStylePopupTabs.TabControlChange(Sender: TObject);182 begin183 184 end;185 186 procedure TCDStylePopupTabs.TabControlMouseDown(Sender: TObject;187 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);188 begin189 190 end;191 192 procedure TCDStylePopupTabs.TabControlMouseUp(Sender: TObject;193 Button: TMouseButton; Shift: TShiftState; X, Y: Integer);194 begin195 196 end;197 169 198 170 constructor TCDStylePopupTabs.Create(ADockSite: TWinControl); … … 202 174 inherited; 203 175 FDockStyle := dsPopupTabs; 204 205 176 AutoHide := TCDAutoHide.Create; 177 PopupPanel := TPanel.Create(nil); 206 178 end; 207 179 … … 209 181 begin 210 182 AutoHide.Free; 183 PopupPanel.Free; 211 184 inherited Destroy; 212 185 end;
Note:
See TracChangeset
for help on using the changeset viewer.