Changeset 114 for Docking/CoolDocking/UCoolDockStyleTabs.pas
- Timestamp:
- Jan 5, 2011, 7:51:16 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockStyleTabs.pas
r103 r114 32 32 public 33 33 constructor Create(AManager: TObject); 34 procedure SetVisible(const AValue: Boolean); override; 34 35 destructor Destroy; override; 35 36 procedure ChangeVisible(Control: TWinControl; Visible: Boolean); override; … … 208 209 end; 209 210 211 procedure TCoolDockStyleTabs.SetVisible(const AValue: Boolean); 212 begin 213 inherited SetVisible(AValue); 214 with TCoolDockManager(Manager) do 215 if (TabControl.TabIndex >= 0) and (TabControl.TabIndex < DockPanels.Count) then 216 with TCoolDockClientPanel(DockPanels[TabControl.TabIndex]) do begin 217 //Show; 218 if AValue then Control.Show; 219 //TabControl.Show; 220 //ClientAreaPanel.Show; 221 end; 222 end; 223 210 224 procedure TCoolDockStyleTabs.ChangeVisible(Control: TWinControl; Visible: Boolean); 211 225 var … … 216 230 if Assigned(TWinControl(Control).DockManager) then 217 231 with TCoolDockManager(TWinControl(Control).DockManager) do begin 218 // ShowMessage(IntToStr(DockPanels.Count)); 232 // ShowMessage(IntToStr(TabControl.TabIndex) + ' ' + IntToStr(DockPanels.Count)); 233 // TabControl.Tabs[0].; 234 // if (TabControl.TabIndex >= 0) and (TabControl.TabIndex < DockPanels.Count) then begin 235 // TCoolDockClientPanel(DockPanels[TabControl.TabIndex]).Show; 236 // TCoolDockClientPanel(DockPanels[TabControl.TabIndex]).Control.Show; 237 // end; 238 // ShowMessage(IntToStr(DockPanels.Count)); 219 239 end; 220 240 end;
Note:
See TracChangeset
for help on using the changeset viewer.