Changeset 107


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.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.lfm

    r105 r107  
    55  Width = 782
    66  Caption = 'Acronym Decoder'
    7   ClientHeight = 422
     7  ClientHeight = 417
    88  ClientWidth = 782
    99  Menu = MainMenu1
     
    1717  object Panel1: TPanel
    1818    Left = 0
    19     Height = 396
     19    Height = 391
    2020    Top = 26
    2121    Width = 782
    2222    Align = alClient
    2323    BevelOuter = bvNone
    24     ClientHeight = 396
     24    ClientHeight = 391
    2525    ClientWidth = 782
    2626    TabOrder = 1
    2727    object CheckBoxExactMath: TCheckBox
    2828      Left = 8
    29       Height = 24
     29      Height = 29
    3030      Top = 3
    31       Width = 104
     31      Width = 124
    3232      Caption = 'Exact match'
    3333      OnChange = CheckBoxExactMathChange
     
    4444    object ListViewAcronyms: TListView
    4545      Left = 8
    46       Height = 324
     46      Height = 319
    4747      Top = 64
    4848      Width = 767
  • trunk/Forms/UFormMain.pas

    r104 r107  
    430430    ListViewFilter1.StringGrid.SetFocus;
    431431  end;
    432   Core.ScaleDPI1.ScaleImageList(ImageList1, Core.ScaleDPI1.DesignDPI);
    433   Core.ScaleDPI1.ScaleControl(ToolBar1, Core.ScaleDPI1.DesignDPI);
    434432end;
    435433
  • trunk/Languages/AcronymDecoder.cs.po

    r105 r107  
    898898msgid "Process import sources"
    899899msgstr "Zpracovat zdroje importu"
     900
  • 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.