Recent

Author Topic: [solved] How to initialize TFontParams?  (Read 496 times)

Nicole

  • Hero Member
  • *****
  • Posts: 970
[solved] How to initialize TFontParams?
« on: July 16, 2022, 05:31:33 pm »
...
Var MFontP: TFontParams;

begin
...

The compiler says, I shall initialize. But how?
MFontP:= ...............??
« Last Edit: July 16, 2022, 06:38:30 pm by Nicole »

wp

  • Hero Member
  • *****
  • Posts: 11910
Re: How to initialize TFontParams?
« Reply #1 on: July 16, 2022, 06:12:21 pm »
Code: Pascal  [Select][+][-]
  1. var
  2.   MFontP: TFontParams;
  3. ...
  4.   MFontP := Default(TFontParams);

Nicole

  • Hero Member
  • *****
  • Posts: 970
Re: How to initialize TFontParams?
« Reply #2 on: July 16, 2022, 06:38:13 pm »
thank you!

 

TinyPortal © 2005-2018