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/Managers/UCDManagerRegions.pas

    r192 r193  
    1414  end;
    1515
    16   { TCDStyleRegions }
    17 
    18   TCDStyleRegions = class(TCDManager)
     16  { TCDManagerRegions }
     17
     18  TCDManagerRegions = class(TCDManager)
    1919  private
    2020    function GetDirection(InsertAt: TAlign): TCDDirection;
     
    2828    destructor Destroy; override;
    2929    procedure UpdateClientSize; override;
    30     procedure DoSetVisible(const AValue: Boolean);
     30    procedure DoSetVisible(const AValue: Boolean); override;
    3131    procedure ChangeVisible(Control: TWinControl; Visible: Boolean);
    3232    property DockDirection: TCDDirection read FDockDirection
     
    4040
    4141
    42 { TCDStyleRegions }
    43 
    44 function TCDStyleRegions.GetDirection(InsertAt: TAlign): TCDDirection;
     42{ TCDManagerRegions }
     43
     44function TCDManagerRegions.GetDirection(InsertAt: TAlign): TCDDirection;
    4545begin
    4646  Result := ddHorizontal;
     
    5353end;
    5454
    55 procedure TCDStyleRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign;
     55procedure TCDManagerRegions.InsertControlPanel(Control: TControl; InsertAt: TAlign;
    5656  DropCtl: TControl);
    5757var
     
    107107end;
    108108
    109 procedure TCDStyleRegions.RemoveControl(Control: TControl);
     109procedure TCDManagerRegions.RemoveControl(Control: TControl);
    110110var
    111111  ClientPanel: TCDClientPanel;
     
    134134end;
    135135
    136 constructor TCDStyleRegions.Create(ADockSite: TWinControl);
    137 var
    138   I: Integer;
    139 begin
    140   inherited;
     136constructor TCDManagerRegions.Create(ADockSite: TWinControl);
     137var
     138  I: Integer;
     139begin
     140  inherited;
     141  FDockStyle := dsList;
    141142  //Panels := TObjectList.Create;
    142143
     
    151152end;
    152153
    153 destructor TCDStyleRegions.Destroy;
     154destructor TCDManagerRegions.Destroy;
    154155begin
    155156  //Panels.Free;
     
    157158end;
    158159
    159 procedure TCDStyleRegions.UpdateClientSize;
     160procedure TCDManagerRegions.UpdateClientSize;
    160161var
    161162  I: Integer;
     
    200201end;
    201202
    202 procedure TCDStyleRegions.DoSetVisible(const AValue: Boolean);
    203 var
    204   I: Integer;
    205 begin
    206 //  inherited SetVisible(AValue);
     203procedure TCDManagerRegions.DoSetVisible(const AValue: Boolean);
     204var
     205  I: Integer;
     206begin
     207  inherited;
    207208  for I := 0 to DockPanels.Count - 1 do
    208209
     
    222223end;
    223224
    224 procedure TCDStyleRegions.ChangeVisible(Control: TWinControl;
     225procedure TCDManagerRegions.ChangeVisible(Control: TWinControl;
    225226  Visible: Boolean);
    226227begin
Note: See TracChangeset for help on using the changeset viewer.