Ignore:
Timestamp:
Mar 11, 2011, 10:57:39 AM (14 years ago)
Author:
george
Message:
  • Fixed: Infinite loop in TCDManager SetVisible method.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDManager.pas

    r192 r193  
    2222  TCDManager = class(TCDManagerBase)
    2323  private
    24     FDockStyle: TCDStyleType;
    2524    FDockSite: TWinControl;
    2625    FDockPanels: TCDPanels;
     
    3332    procedure SetVisible(const AValue: Boolean);
    3433  public
     34    FDockStyle: TCDStyleType;
    3535    PopupMenu: TCDPopupMenu;
    3636    constructor Create(ADockSite: TWinControl); override;
     
    4242    procedure InsertControlPanel(Control: TControl; InsertAt: TAlign;
    4343      DropCtl: TControl); virtual;
     44    procedure DoSetVisible(const AValue: Boolean); virtual;
    4445
    4546    // Inherited from TDockManager
     
    161162end;
    162163
     164procedure TCDManager.DoSetVisible(const AValue: Boolean);
     165begin
     166
     167end;
     168
    163169procedure TCDManager.InsertControl(Control: TControl; InsertAt: TAlign;
    164170  DropCtl: TControl);
     
    315321    FDockStyle := AValue;
    316322    if AValue = dsTabs then begin
    317       NewManager := TCDStyleTabs.Create(FDockSite);
    318       TCDStyleTabs(Self).TabControlChange(Self);
     323      NewManager := TCDManagerTabs.Create(FDockSite);
     324      TCDManagerTabs(Self).TabControlChange(Self);
    319325    end else
    320326    if AValue = dsList then begin
    321       NewManager := TCDStyleRegions.Create(FDockSite);
     327      NewManager := TCDManagerRegions.Create(FDockSite);
    322328    end else
    323329    if AValue = dsPopupList then begin
     
    347353  I: Integer;
    348354begin
    349   Visible := AValue;
     355  DoSetVisible(AValue);
     356  //Visible := AValue;
    350357//  for I := 0 to DockPanels.Count - 1 do
    351358//    TCDClientPanel(DockPanels[I]).Visible := AValue;
Note: See TracChangeset for help on using the changeset viewer.