close Warning: Can't synchronize with repository "(default)" (No changeset 184 in the repository). Look in the Trac log for more information.

Ignore:
Timestamp:
Feb 17, 2016, 1:17:21 PM (8 years ago)
Author:
chronos
Message:
  • Added: Form constraintes which are also scaled for High DPI.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormMain.pas

    r100 r107  
    141141      PaintBox1.Canvas.Draw(0, 0, TempBitmap);
    142142    end else begin
     143      {$ifdef WINDOWS}
     144      PaintBox1.Canvas.Brush.Color := clBackground; //PaintBox1.GetColorResolvingParent;
     145      PaintBox1.Canvas.FillRect(0, 0, PaintBox1.Width, PaintBox1.Height);
     146      {$endif}
    143147      Paint(PaintBox1.Canvas);
    144148    end;
     
    203207  if AToolBarBigIcons.Checked then begin
    204208    ToolBar1.Images := Core.ImageListLarge;
    205     ToolBar1.ButtonWidth := 32 + 7;
    206     ToolBar1.ButtonHeight := 32 + 6;
    207     ToolBar1.Height := 32 + 10;
    208     ToolBar1.Width := 32 + 10;
     209    ToolBar1.ButtonWidth := Core.ImageListLarge.Width + 7;
     210    ToolBar1.ButtonHeight := Core.ImageListLarge.Height + 6;
     211    ToolBar1.Width := Core.ImageListLarge.Width + 10;
     212    ToolBar1.Height := Core.ImageListLarge.Height + 10;
    209213  end else begin
    210     ToolBar1.ButtonWidth := 16 + 7;
    211     ToolBar1.ButtonHeight := 16 + 6;
    212     ToolBar1.Height := 16 + 10;
    213     ToolBar1.Width := 16 + 10;
    214214    ToolBar1.Images := Core.ImageListSmall;
     215    ToolBar1.ButtonWidth := Core.ImageListSmall.Width + 7;
     216    ToolBar1.ButtonHeight := Core.ImageListSmall.Height + 6;
     217    ToolBar1.Width := Core.ImageListSmall.Width + 10;
     218    ToolBar1.Height := Core.ImageListSmall.Height + 10;
    215219  end;
    216220  ToolBar1.Visible := AToolBarVisible.Checked;
Note: See TracChangeset for help on using the changeset viewer.