Ignore:
Timestamp:
Sep 20, 2021, 2:37:10 PM (3 years ago)
Author:
chronos
Message:
  • Modified: Updated windows installer script to use InnoSetup 6.
  • Fixed: Correctly scale toolbar with images.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/UScaleDPI.pas

    r207 r210  
    313313    //AutoSize := False;
    314314    //Anchors := [];
    315     Left := ScaleX(Left, FromDPI.X);
    316     Top := ScaleY(Top, FromDPI.Y);
    317     //if not (akRight in Anchors) then
    318     Width := ScaleX(Width, FromDPI.X);
    319     //if not (akBottom in Anchors) then
    320     Height := ScaleY(Height, FromDPI.Y);
     315    BoundsRect := Bounds(ScaleX(Left, FromDPI.X), ScaleY(Top, FromDPI.Y),
     316      ScaleX(Width, FromDPI.X), ScaleY(Height, FromDPI.Y));
    321317    {$IFDEF LCL Qt}
    322318      Font.Size := 0;
     
    352348    ToolBarControl := TToolBar(Control);
    353349    with ToolBarControl do begin
    354       ButtonWidth := ScaleX(ButtonWidth, FromDPI.X);
    355       ButtonHeight := ScaleY(ButtonHeight, FromDPI.Y);
     350      //SetButtonSize(ScaleX(ButtonWidth, FromDPI.X), ScaleY(ButtonHeight, FromDPI.Y));
    356351    end;
    357352  end;
Note: See TracChangeset for help on using the changeset viewer.