Changeset 194 for Docking/CoolDocking/UCDPopupMenu.pas
- Timestamp:
- Mar 11, 2011, 1:00:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDPopupMenu.pas
r193 r194 6 6 7 7 uses 8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, UCDClientPanel,8 Classes, SysUtils, Menus, Forms, Controls, Dialogs, 9 9 ExtCtrls, ComCtrls, UCDCommon; 10 10 … … 165 165 if PopupComponent is TPageControl then 166 166 with TPageControl(PopupComponent) do begin 167 TForm(TCD ClientPanel(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; 172 172 end; 173 173 end; … … 180 180 if PopupComponent is TPageControl then 181 181 with TPageControl(PopupComponent) do begin 182 Value := TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption;182 Value := TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption; 183 183 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 184 TCD ClientPanel(TCDManager(Manager).DockPanels[TabIndex]).Control.Caption := Value;184 TCDManagerTabsItem(TCDManagerTabs(Manager).DockItems[TabIndex]).Control.Caption := Value; 185 185 Pages[TabIndex].Caption := Value; 186 186 end; … … 188 188 if PopupComponent is TCDHeader then 189 189 with TCDHeader(PopupComponent) do begin 190 Value := ParentClientPanel.Control.Caption;190 Value := ManagerItem.Control.Caption; 191 191 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 192 ParentClientPanel.Control.Caption := Value;192 ManagerItem.Control.Caption := Value; 193 193 Title.Caption := Value; 194 194 end; … … 262 262 if PopupComponent is TPageControl then 263 263 with TPageControl(PopupComponent) do begin 264 Control := TCD ClientPanel(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; 269 269 end else Control := nil; 270 270 if Assigned(Control) then
Note:
See TracChangeset
for help on using the changeset viewer.