Changeset 177 for Docking/CoolDocking/UCoolDockPopupMenu.pas
- Timestamp:
- Mar 7, 2011, 4:16:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCoolDockPopupMenu.pas
r176 r177 163 163 Control: TControl; 164 164 begin 165 if PopupComponent is T TabControl then166 with T TabControl(PopupComponent) do begin165 if PopupComponent is TPageControl then 166 with TPageControl(PopupComponent) do begin 167 167 TForm(TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control).Close; 168 168 end; … … 178 178 begin 179 179 //ShowMessage(PopupComponent.ClassName); 180 if PopupComponent is T TabControl then181 with T TabControl(PopupComponent) do begin180 if PopupComponent is TPageControl then 181 with TPageControl(PopupComponent) do begin 182 182 Value := TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control.Caption; 183 183 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 184 184 TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control.Caption := Value; 185 Tabs[TabIndex]:= Value;185 Pages[TabIndex].Caption := Value; 186 186 end; 187 187 end; … … 228 228 Control: TControl; 229 229 begin 230 231 //Control.ManualFloat(Control.BoundsRect); 230 if PopupComponent is TPageControl then 231 with TPageControl(PopupComponent) do begin 232 Control := TCoolDockClientPanel(TCoolDockManager(Manager).DockPanels[TabIndex]).Control; 233 end else 234 if PopupComponent is TCoolDockHeader then 235 with TCoolDockHeader(PopupComponent) do begin 236 Control := ParentClientPanel.Control; 237 end else Control := nil; 238 if Assigned(Control) then 239 Control.ManualFloat(Control.BoundsRect); 232 240 end; 233 241
Note:
See TracChangeset
for help on using the changeset viewer.