Ignore:
Timestamp:
Mar 16, 2011, 12:32:41 PM (13 years ago)
Author:
george
Message:
  • Fixed: Popup submenus style and position item selection.
  • Added: Locking dock managers.
  • Modified: Enhanced auto popup tabs handling. Not yet finished.
  • Modified: Dock manager position united for all dock manager descendands.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDClient.pas

    r194 r198  
    1717
    1818type
     19
     20  { TCDClient }
     21
    1922  TCDClient = class(TCDClientBase)
    2023  private
     
    2326    procedure SetDockable(const AValue: Boolean);
    2427    procedure SetFloatable(const AValue: Boolean);
     28    procedure SetPanel(const AValue: TPanel); override;
    2529  public
    2630    constructor Create(AOwner: TComponent); override;
     
    7882end;
    7983
     84procedure TCDClient.SetPanel(const AValue: TPanel);
     85begin
     86  inherited SetPanel(AValue);
     87  if not (csDesigning in ComponentState) then begin
     88    if Assigned(Panel) then
     89    with Panel do begin
     90      DockSite := True;
     91      UseDockManager := True;
     92      DockManager := TCDManagerRegions.Create(Panel);
     93    end;
     94  end;
     95end;
     96
    8097constructor TCDClient.Create(AOwner: TComponent);
    8198begin
Note: See TracChangeset for help on using the changeset viewer.