Ignore:
Timestamp:
Mar 11, 2011, 1:00:06 PM (14 years ago)
Author:
george
Message:
  • Removed: UCDClientPanel replaced by TCDManagerItem and it's descendend.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDPopupMenu.pas

    r193 r194  
    66
    77uses
    8   Classes, SysUtils, Menus, Forms, Controls, Dialogs, UCDClientPanel,
     8  Classes, SysUtils, Menus, Forms, Controls, Dialogs,
    99  ExtCtrls, ComCtrls, UCDCommon;
    1010
     
    165165  if PopupComponent is TPageControl then
    166166  with TPageControl(PopupComponent) do begin
    167     TForm(TCDClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control).Close;
    168   end;
    169   if PopupComponent is TCDHeader then
    170   with TCDHeader(PopupComponent) do begin
    171     TForm(ParentClientPanel.Control).Close;
     167    TForm(TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control).Close;
     168  end;
     169  if PopupComponent is TCDHeader then
     170  with TCDHeader(PopupComponent) do begin
     171    TForm(ManagerItem.Control).Close;
    172172  end;
    173173end;
     
    180180  if PopupComponent is TPageControl then
    181181  with TPageControl(PopupComponent) do begin
    182     Value := TCDClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption;
     182    Value := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption;
    183183    if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin
    184       TCDClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption := Value;
     184      TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption := Value;
    185185      Pages[TabIndex].Caption := Value;
    186186    end;
     
    188188  if PopupComponent is TCDHeader then
    189189  with TCDHeader(PopupComponent) do begin
    190     Value := ParentClientPanel.Control.Caption;
     190    Value := ManagerItem.Control.Caption;
    191191    if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin
    192       ParentClientPanel.Control.Caption := Value;
     192      ManagerItem.Control.Caption := Value;
    193193      Title.Caption := Value;
    194194    end;
     
    262262  if PopupComponent is TPageControl then
    263263  with TPageControl(PopupComponent) do begin
    264     Control := TCDClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control;
    265   end else
    266   if PopupComponent is TCDHeader then
    267   with TCDHeader(PopupComponent) do begin
    268     Control := ParentClientPanel.Control;
     264    Control := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control;
     265  end else
     266  if PopupComponent is TCDHeader then
     267  with TCDHeader(PopupComponent) do begin
     268    Control := ManagerItem.Control;
    269269  end else Control := nil;
    270270  if Assigned(Control) then
Note: See TracChangeset for help on using the changeset viewer.