Ignore:
Timestamp:
Mar 22, 2011, 11:32:28 AM (14 years ago)
Author:
george
Message:
  • Fixed: If control docked to panel owned by main form then it was possible to redock main form to conjoin form.
  • Modified: Header title is now painted to canvas instead of use of TLabel. This will be necessary to draw rotated text later.
  • Added: Length of header title is now reduced to not overlap to header buttons area.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Docking/CoolDocking/UCDPopupMenu.pas

    r207 r217  
    230230    if InputQuery(SRenameWindow, SEnterNewWindowName, False, Value) then begin
    231231      ManagerItem.Control.Caption := Value;
    232       Title.Caption := Value;
     232      Invalidate;
    233233    end;
    234234  end;
     
    243243  if PopupComponent is TCDHeader then
    244244  with TCDHeader(PopupComponent) do begin
    245     TCDManager(Manager).HeaderPos := hpAuto;
     245    TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpTop;
     246    Invalidate;
    246247  end;
    247248end;
     
    255256  if PopupComponent is TCDHeader then
    256257  with TCDHeader(PopupComponent) do begin
    257     TCDManager(Manager).HeaderPos := hpLeft;
     258    TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpLeft;
     259    Invalidate;
    258260  end;
    259261end;
     
    267269  if PopupComponent is TCDHeader then
    268270  with TCDHeader(PopupComponent) do begin
    269     TCDManager(Manager).HeaderPos := hpRight;
     271    TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpRight;
     272    Invalidate;
    270273  end;
    271274end;
     
    279282  if PopupComponent is TCDHeader then
    280283  with TCDHeader(PopupComponent) do begin
    281     TCDManager(Manager).HeaderPos := hpTop;
     284    TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpTop;
     285    Invalidate;
    282286  end;
    283287end;
     
    291295  if PopupComponent is TCDHeader then
    292296  with TCDHeader(PopupComponent) do begin
    293     TCDManager(Manager).HeaderPos := hpBottom;
     297    TCDManager(TWinControl(ManagerItem.Control).DockManager).HeaderPos := hpBottom;
     298    Invalidate;
    294299  end;
    295300end;
Note: See TracChangeset for help on using the changeset viewer.