Changeset 147


Ignore:
Timestamp:
Aug 31, 2022, 9:03:29 AM (20 months ago)
Author:
chronos
Message:
  • Fixed: Font size was not scaled in source code form.
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormSource.pas

    r129 r147  
    9494    VCardHighlighter.Properties[I] := LowerCase(ContactFields[I].SysName);
    9595  SynEditSource.Highlighter := VCardHighlighter;
     96  SynEditSource.Font.Height := Font.Height;
    9697end;
    9798
  • trunk/Packages/Common/Languages/UTestCase.cs.po

    r146 r147  
    2323msgid "Passed"
    2424msgstr "Prošlo"
     25
  • trunk/Packages/Common/UScaleDPI.pas

    r128 r147  
    3030  end;
    3131
     32  TOnScaleControl = procedure (Control: TControl) of object;
     33
    3234  { TScaleDPI }
    3335
     
    3739    FDesignDPI: TPoint;
    3840    FDPI: TPoint;
     41    FOnScaleControl: TOnScaleControl;
     42    FOnScaleControls: TOnScaleControl;
    3943    procedure SetAutoDetect(AValue: Boolean);
    4044    procedure SetDesignDPI(AValue: TPoint);
     
    5660  published
    5761    property AutoDetect: Boolean read FAutoDetect write SetAutoDetect;
     62    property OnScaleControl: TOnScaleControl read FOnScaleControls
     63      write FOnScaleControl;
    5864  end;
    5965
     
    370376  end;
    371377
     378  if Assigned(FOnScaleControl) then
     379    FOnScaleControl(Control);
     380
    372381  //if Control is TForm then
    373382  //  Control.EnableAutoSizing;
Note: See TracChangeset for help on using the changeset viewer.