Changeset 355 for Docking/CoolDocking/Managers/UCDManagerTabs.pas
- Timestamp:
- Apr 27, 2012, 8:34:10 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/Managers/UCDManagerTabs.pas
r354 r355 87 87 Update; 88 88 Switch(DockItems.IndexOf(FindControlInPanels(TControl(Sender)))); 89 TCDManagerTabsItem(DockItems[DockItems.IndexOf(90 FindControlInPanels(TControl(Sender)))]).HideType := dhtPermanent;89 //TCDManagerTabsItem(DockItems[DockItems.IndexOf( 90 // FindControlInPanels(TControl(Sender)))]).HideType := dhtPermanent; 91 91 end else Update; 92 92 end; … … 124 124 inherited; 125 125 if (PageControl.TabIndex >= 0) and (PageControl.TabIndex < DockItems.Count) then 126 with TCDManagerItem(DockItems[PageControl.TabIndex]) do begin 127 if AValue and (not Control.Visible) and (Control.Tag = Integer(dhtTemporal)) then begin 128 Control.Show; 129 Control.Tag := Integer(dhtPermanent); 130 end; 131 end; 126 with TCDManagerItem(DockItems[PageControl.TabIndex]) do 127 TCDManager(Control.DockManager).DockSiteVisible := True; 132 128 end; 133 129 … … 399 395 Control.Align := alClient; 400 396 if PageControl.PageIndex = I then begin 401 if (not Control.Visible) and (HideType = dhtTemporal) then402 Control.Visible := True;397 TCDManager(Control.DockManager).DockSiteVisible := True; 398 if not Control.Visible then Control.Show; 403 399 end else begin 404 if Control.Visible then begin 405 HideType := dhtTemporal; 406 Control.Visible := False; 407 end; 408 end; 409 PageControl.Pages[I].TabVisible := Control.Visible or (HideType = dhtTemporal); 400 TCDManager(Control.DockManager).DockSiteVisible := False; 401 end; 402 PageControl.Pages[I].TabVisible := Control.Visible; 410 403 411 404 //TCDClientPanel(DockPanels[I]).ClientAreaPanel.Width := DockSite.Width;
Note:
See TracChangeset
for help on using the changeset viewer.