Changeset 217 for Docking/CoolDocking/UCDPopupMenu.pas
- Timestamp:
- Mar 22, 2011, 11:32:28 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Docking/CoolDocking/UCDPopupMenu.pas
r207 r217 230 230 if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin 231 231 ManagerItem.Control.Caption := Value; 232 Title.Caption := Value;232 Invalidate; 233 233 end; 234 234 end; … … 243 243 if PopupComponent is TCDHeader then 244 244 with TCDHeader(PopupComponent) do begin 245 TCDManager(Manager).HeaderPos := hpAuto; 245 TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpTop; 246 Invalidate; 246 247 end; 247 248 end; … … 255 256 if PopupComponent is TCDHeader then 256 257 with TCDHeader(PopupComponent) do begin 257 TCDManager(Manager).HeaderPos := hpLeft; 258 TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpLeft; 259 Invalidate; 258 260 end; 259 261 end; … … 267 269 if PopupComponent is TCDHeader then 268 270 with TCDHeader(PopupComponent) do begin 269 TCDManager(Manager).HeaderPos := hpRight; 271 TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpRight; 272 Invalidate; 270 273 end; 271 274 end; … … 279 282 if PopupComponent is TCDHeader then 280 283 with TCDHeader(PopupComponent) do begin 281 TCDManager(Manager).HeaderPos := hpTop; 284 TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpTop; 285 Invalidate; 282 286 end; 283 287 end; … … 291 295 if PopupComponent is TCDHeader then 292 296 with TCDHeader(PopupComponent) do begin 293 TCDManager(Manager).HeaderPos := hpBottom; 297 TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpBottom; 298 Invalidate; 294 299 end; 295 300 end;
Note:
See TracChangeset
for help on using the changeset viewer.