Changeset 490


Ignore:
Timestamp:
Dec 24, 2023, 7:15:31 PM (20 months ago)
Author:
ataylor
Message:

Account for taller titlebar when rescaling forms.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Components/ControlsUtility.pas

    r470 r490  
    759759  InitW: longint;
    760760  InitH: longint;
     761  TBarHeight: integer;
    761762begin
    762763  InitW := Form.Width;
     
    783784                XFactor,
    784785                YFactor );
     786
     787  // Increase overall window height to allow for a taller-than-normal titlebar
     788  TBarHeight := WinQuerySysValue( HWND_DESKTOP, SV_CYTITLEBAR );
     789  if TBarHeight > 23 then
     790    //Form.Height := Form.Height + TBarHeight - 23;
     791    Form.Height := Form.Height + Round( 23 * YFactor ) - 20;
    785792
    786793  // Adjust the bottom left position by half of the width/height increase
  • trunk/i18n/Changes.txt

    r489 r490  
    77   is off-screen (such as on another virtual desktop).
    88- Fix: Dropping a locale from the Locale Palette onto NewView should work now.
     9- Fix: Account for increase in titlebar height when rescaling forms for larger fonts.
    910
    1011V2.19.8
Note: See TracChangeset for help on using the changeset viewer.