Ignore:
Timestamp:
Mar 16, 2011, 12:32:41 PM (14 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/UCDCommon.pas

    r192 r198  
    1212  TCDHideType = (dhtPermanent, dhtTemporal);
    1313  TCDDirection = (ddNone, ddHorizontal, ddVertical);
     14  THeaderPos = (hpAuto, hpLeft, hpTop, hpRight, hpBottom);
    1415
    1516  TCDMasterBase = class;
     
    6465    FPanel: TPanel;
    6566    procedure SetMaster(const AValue: TCDMasterBase);
    66     procedure SetPanel(const AValue: TPanel);
     67  public
     68    procedure SetPanel(const AValue: TPanel); virtual;
    6769  published
    6870    property Master: TCDMasterBase read FMaster
     
    117119
    118120procedure TCDClientBase.SetPanel(const AValue: TPanel);
    119 var
    120   OldPanel: TPanel;
    121121begin
    122122  if FPanel = AValue then exit;
    123   OldPanel := FPanel;
     123  if Assigned(FPanel) then FPanel.DockSite := False;
    124124  FPanel := AValue;
    125   if not (csDesigning in ComponentState) then begin
    126     if Assigned(FPanel) then
    127     with FPanel do begin
    128       DockSite := True;
    129       UseDockManager := True;
    130       //DockManager := TCoolDockManager.Create(FPanel);
    131     end else begin
    132       OldPanel.DockSite := False;
    133     end;
    134   end;
    135125end;
    136126
Note: See TracChangeset for help on using the changeset viewer.