Changeset 96 for Docking/CoolDocking/UCoolDocking.pas
- Timestamp:
- Dec 8, 2010, 10:40:38 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDocking.pas
r89 r96 32 32 Panel: TPanel; 33 33 CoolDockClient: TCoolDockClient; 34 procedure FormShow(Sender : TObject); 34 35 constructor Create(TheOwner: TComponent); override; 35 36 end; … … 365 366 366 367 PopupMenuTabs := TPopupMenu.Create(FDockSite); 368 PopupMenuTabs.Name := ADockSite.Name + '_' + 'PopupMenuTabs'; 367 369 368 370 NewMenuItem := TMenuItem.Create(PopupMenuTabs); … … 432 434 433 435 PopupMenuHeader := TPopupMenu.Create(FDockSite); 436 PopupMenuHeader.Name := ADockSite.Name + '_' + 'PopupMenuHeader'; 434 437 435 438 NewMenuItem := TMenuItem.Create(PopupMenuHeader); … … 498 501 TabImageList := TImageList.Create(FDockSite); 499 502 with TabImageList do begin 503 Name := ADockSite.Name + '_' + 'ImageList'; 500 504 end; 501 505 TabControl := TTabControl.Create(FDockSite); 502 506 with TabControl do begin 503 507 Parent := FDockSite; 508 Name := ADockSite.Name + '_' + 'TabControl'; 504 509 Visible := False; 505 510 Align := alTop; … … 863 868 TCoolDockClientPanel(FDockPanels[I]).Control.Align := alClient; 864 869 TCoolDockClientPanel(FDockPanels[I]).Control.Visible := False; 870 871 // Workaround for "Cannot focus" error 872 TForm(TCoolDockClientPanel(FDockPanels[I]).Control).ActiveControl := nil; 865 873 end; 866 874 if (TabControl.TabIndex <> -1) and (FDockPanels.Count > TabControl.TabIndex) then begin … … 882 890 end; 883 891 end; 884 //TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True;892 //TCoolDockClientPanel(FDockPanels[TabControl.TabIndex]).Visible := True; 885 893 end; 886 894 MouseDownSkip := True; … … 1108 1116 { TCoolDockConjoinForm } 1109 1117 1118 procedure TCoolDockConjoinForm.FormShow(Sender: TObject); 1119 begin 1120 //Panel.Show; 1121 end; 1122 1110 1123 constructor TCoolDockConjoinForm.Create(TheOwner: TComponent); 1111 1124 begin … … 1114 1127 with Panel do begin 1115 1128 Parent := Self; 1129 Name := Parent.Name + '_Panel'; 1116 1130 DockSite := True; 1117 1131 UseDockManager := True; … … 1124 1138 with CoolDockClient do begin 1125 1139 Panel := Self.Panel; 1126 end; 1140 Name := Owner.Name + '_CoolDockClient'; 1141 end; 1142 OnShow := FormShow; 1127 1143 end; 1128 1144
Note:
See TracChangeset
for help on using the changeset viewer.