Recent

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

Nicole

  • Sr. Member
  • ****
  • Posts: 336
[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: 10044
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

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

 

TinyPortal © 2005-2018