Changeset 214 for branches


Ignore:
Timestamp:
May 9, 2020, 11:49:48 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Wrong TDpiForm property type.
  • Fixed: Fonts were not correctly applied to controls.
Location:
branches/highdpi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Integrated.lpi

    r210 r214  
    1616      <ResourceType Value="res"/>
    1717      <UseXPManifest Value="True"/>
     18      <XPManifest>
     19        <DpiAware Value="True"/>
     20      </XPManifest>
    1821      <Icon Value="0"/>
    1922      <Resources Count="2">
  • branches/highdpi/Packages/DpiControls/UDpiControls.pas

    r213 r214  
    437437    FOnDeactivate: TNotifyEvent;
    438438    function GetBorderIcons: TBorderIcons;
    439     function GetBorderStyle: TBorderStyle;
     439    function GetBorderStyle: TFormBorderStyle;
    440440    function GetDesignTimePPI: Integer;
    441441    function GetFormState: TFormState;
     
    454454    function GetWindowState: TWindowState;
    455455    procedure SetBorderIcons(AValue: TBorderIcons);
    456     procedure SetBorderStyle(AValue: TBorderStyle);
     456    procedure SetBorderStyle(AValue: TFormBorderStyle);
    457457    procedure SetDesignTimePPI(AValue: Integer);
    458458    procedure SetFormStyle(AValue: TFormStyle);
     
    493493    property FormState: TFormState read GetFormState;
    494494    property FormStyle: TFormStyle read GetFormStyle write SetFormStyle;
    495     property BorderStyle: TBorderStyle read GetBorderStyle write SetBorderStyle;
     495    property BorderStyle: TFormBorderStyle read GetBorderStyle write SetBorderStyle default bsSizeable;
    496496    property BorderIcons: TBorderIcons read GetBorderIcons write SetBorderIcons;
    497497    property LCLVersion: string read GetLCLVersion write SetLCLVersion;
     
    22312231procedure TDpiControl.UpdateVclControl;
    22322232begin
     2233  Font.VclFont := GetVclControl.Font;
    22332234  GetVclControl.OnResize := @VclFormResize;
    22342235  GetVclControl.OnChangeBounds := @VclChangeBounds;
     
    26362637end;
    26372638
    2638 function TDpiForm.GetBorderStyle: TBorderStyle;
     2639function TDpiForm.GetBorderStyle: TFormBorderStyle;
    26392640begin
    26402641  Result := GetVclForm.BorderStyle;
     
    27212722end;
    27222723
    2723 procedure TDpiForm.SetBorderStyle(AValue: TBorderStyle);
     2724procedure TDpiForm.SetBorderStyle(AValue: TFormBorderStyle);
    27242725begin
    27252726  GetVclForm.BorderStyle := AValue;
Note: See TracChangeset for help on using the changeset viewer.