Ignore:
Timestamp:
May 4, 2012, 12:27:25 PM (12 years ago)
Author:
chronos
Message:
  • Fixed: Regions size update on Control visible state change.
  • Added: Support for custom center region selection. Surrounding regions are aligned to edges and keep size on docksite resize.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDManager.pas

    r355 r359  
    88  Classes, SysUtils, UCDCommon, Controls, Contnrs, Dialogs,
    99  UCDPopupMenu, LCLType, LCLIntf, LMessages, Graphics, Buttons,
    10   UCDConjoinForm, Menus, StdCtrls, ExtCtrls, Forms;
     10  UCDConjoinForm, Menus, ExtCtrls, Forms;
    1111
    1212const
     
    5757    Header: TCDHeader;
    5858    ControlPanel: TPanel;
     59    DockItem: TCDManagerItem;
    5960    property HeaderPos: THeaderPos read FHeaderPos write SetHeaderPos;
    6061    property HeaderVisible: Boolean read GetHeaderVisible write SetHeaderVisible;
     
    357358  FDockSiteVisible := AValue;
    358359  SetVisible(FDockSiteVisible);
    359   if Assigned(FOnDockSiteHide) and not AValue then
     360  if Assigned(FOnDockSiteHide) and (not FDockSiteVisible) then
    360361    FOnDockSiteHide(Self);
    361   if Assigned(FOnDockSiteShow) and AValue then
     362  if Assigned(FOnDockSiteShow) and FDockSiteVisible then
    362363    FOnDockSiteShow(Self);
    363364end;
Note: See TracChangeset for help on using the changeset viewer.