Changeset 107 for trunk/UCore.pas


Ignore:
Timestamp:
Oct 11, 2016, 4:44:43 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Do not scale images and toolbar every main window hide/show operation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r104 r107  
    165165
    166166procedure TCore.ScaleDPI;
    167 var
    168   I: Integer;
    169167begin
    170   //ScaleDPI1.DPI := Point(150, 150);
    171   with ScaleDPI1 do
    172   if (DesignDPI.X <> DPI.X) or (DesignDPI.Y <> DPI.Y) then begin
    173     for I := 0 to Screen.FormCount - 1 do begin
    174       //StoreDimensions(Screen.Forms[I], StoredDimension);
    175       //ScaleDimensions(Screen.Forms[I], StoredDimension);
    176     end;
    177   end;
     168  Core.ScaleDPI1.ScaleImageList(FormMain.ImageList1, Core.ScaleDPI1.DesignDPI);
     169  Core.ScaleDPI1.ScaleControl(FormMain.ToolBar1, Core.ScaleDPI1.DesignDPI);
    178170end;
    179171
Note: See TracChangeset for help on using the changeset viewer.