Changeset 210 for trunk/Packages/Common/UScaleDPI.pas
- Timestamp:
- Sep 20, 2021, 2:37:10 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/UScaleDPI.pas
r207 r210 313 313 //AutoSize := False; 314 314 //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)); 321 317 {$IFDEF LCL Qt} 322 318 Font.Size := 0; … … 352 348 ToolBarControl := TToolBar(Control); 353 349 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)); 356 351 end; 357 352 end;
Note:
See TracChangeset
for help on using the changeset viewer.