Ignore:
Timestamp:
Mar 18, 2011, 11:05:39 AM (14 years ago)
Author:
george
Message:
  • Fixed: PopupForm auto resize on parent resize.
  • Added: Option in popup menu for change visibility of dock panel header.
File:
1 edited

Legend:

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

    r198 r207  
    6767    //R := Control.ClientRect;
    6868    //Canvas.FillRect(R);
    69     Header.Visible := ShowHeader;
    70     if ShowHeader then begin
     69    if Visible then begin
    7170      if ControlPanel.DockClientCount = 0 then
    7271        Header.DrawGrabber(Canvas, Control) else
     
    162161
    163162  NewItem.PanelHeader.Parent := DockSite;
    164   NewItem.PanelHeader.Header.Title.Caption := TForm(Control).Caption;
    165163
    166164  NewItem.Control := Control;
     
    290288    PanelHeader.Width := Self.DockSite.Width div
    291289      Self.DockSite.DockClientCount;
     290    PanelHeader.Header.Visible := TCDManager(TWinControl(Control).DockManager).HeaderVisible;
     291    PanelHeader.Header.Title.Caption := TForm(Control).Caption;
    292292    Paint(Self);
    293293    if I < (DockItems.Count - 1) then PanelHeader.Align := BaseAlign
Note: See TracChangeset for help on using the changeset viewer.