Ignore:
Timestamp:
Mar 22, 2011, 8:20:18 AM (13 years ago)
Author:
george
Message:
  • Fixed: Tabs in TCDManagerTabs PageControl visibility update. If Control is hided it will not be visibled as tab but stay docked for later showing.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/Managers/UCDManagerRegions.pas

    r213 r215  
    6060begin
    6161  inherited VisibleChange(Sender);
    62   PanelHeader.Visible := Control.Visible;
    63   Manager.UpdateClientSize;
     62  with TCDManagerRegions(Manager) do begin
     63    //if TControl(Sender).Visible then begin
     64    //  TCDManagerRegionsItem(DockItems[DockItems.IndexOf(FindControlInPanels(TControl(Sender)))]).HideType := dhtPermanent;
     65    //end;
     66    UpdateClientSize;
     67  end;
    6468end;
    6569
     
    306310      PanelHeader.Header.Visible := TCDManager(TWinControl(Control).DockManager).HeaderVisible;
    307311    PanelHeader.Header.Title.Caption := TForm(Control).Caption;
     312    PanelHeader.Visible := Control.Visible;
    308313    Paint(Self);
    309314    if I < (DockItems.Count - 1) then PanelHeader.Align := BaseAlign
Note: See TracChangeset for help on using the changeset viewer.