Ignore:
Timestamp:
Mar 22, 2011, 11:32:28 AM (13 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/UCDCommon.pas

    r198 r217  
    7575
    7676function GetUniqueName(BaseName: string): string;
     77function HeaderPosToTabPos(HeaderPos: THeaderPos): TTabPosition;
    7778
    7879implementation
     
    8788end;
    8889
     90function HeaderPosToTabPos(HeaderPos: THeaderPos): TTabPosition;
     91begin
     92  case HeaderPos of
     93    hpBottom: Result := tpBottom;
     94    hpLeft: Result := tpLeft;
     95    hpTop: Result := tpTop;
     96    hpRight: Result := tpRight;
     97    hpAuto: Result := tpTop;
     98  end;
     99end;
    89100
    90101{ TCDManagerBase }
Note: See TracChangeset for help on using the changeset viewer.