Changeset 182 for Docking/CoolDocking/UCoolDockStyleTabs.pas
- Timestamp:
- Mar 9, 2011, 2:11:40 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockStyleTabs.pas
r177 r182 7 7 uses 8 8 Classes, Controls, ExtCtrls, ComCtrls, SysUtils, Dialogs, 9 Menus, UCoolDockStyle, Forms, UCoolDockClientPanel ;9 Menus, UCoolDockStyle, Forms, UCoolDockClientPanel, UCoolDockCommon; 10 10 11 11 type … … 33 33 AControl: TControl; InsertAt: TAlign); 34 34 public 35 constructor Create(AManager: T Object);35 constructor Create(AManager: TCoolDockManagerBase); 36 36 procedure SetVisible(const AValue: Boolean); override; 37 37 destructor Destroy; override; … … 78 78 then 79 79 begin 80 TCoolDockClientPanel(DockPanels[I]).Control.Tag := 1;80 TCoolDockClientPanel(DockPanels[I]).Control.Tag := Integer(dhtTemporal); 81 81 TCoolDockClientPanel(DockPanels[I]).Control.Hide; 82 82 TCoolDockClientPanel(DockPanels[I]).ClientAreaPanel.Hide; … … 138 138 end; 139 139 140 constructor TCoolDockStyleTabs.Create(AManager: T Object);140 constructor TCoolDockStyleTabs.Create(AManager: TCoolDockManagerBase); 141 141 var 142 142 NewMenuItem: TMenuItem; … … 243 243 with TCoolDockClientPanel(DockPanels[PageControl.TabIndex]) do begin 244 244 //Show; 245 if AValue and (not Control.Visible) and (Control.Tag = 1) then begin 245 //ShowMessage(IntToStr(Control.Tag)); 246 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 246 247 Control.Show; 247 Control.Tag := 0;248 Control.Tag := Integer(dhtPermanent); 248 249 end; 249 250 //TabControl.Show; … … 273 274 274 275 I := DockPanels.IndexOf(FindControlInPanels(Control)); 275 if Control.Tag = 0then276 if Control.Tag = Integer(dhtPermanent) then 276 277 if I <> -1 then 277 278 // Control.Hide; 278 279 PageControl.Page[I].TabVisible := False; 279 Control.Tag := 0;280 //Control.Tag := 0; 280 281 // end; 281 282 end;
Note:
See TracChangeset
for help on using the changeset viewer.