Re: Why not use form's ParentFont for Vista?



Matthew,

Setting ParentFont to True on the main form does not work for me. It still doesn't pickup the system font.

I've done more testing with a Delphi-2005 program running in NT4 (using VMware). You are correct that it doesn't pick up the system font.

In answer to your first question, the main form does not have a parent form, so setting ParentFont to True doesn't make a lot of sense. In my case, setting this property doesn't do anything either.

Setting the ParentFont true on the main form does have some effect for me (and that is why I thought it was working).

If I run my test program on NT4 and display the font name for the main form it shows MS Sans Serif. If I run the same program on XP it shows Tahoma.

Since the same program (with the main form ParentFont true) showed the default system font *NAME* on NT4 and XP I assumed it was picking up the system font. But when I tried changing the system font on NT4 it continued to have MS Sans Serif. I now assume (asking for trouble I know) that the Delphi RTL is doing something different when the main form ParentFont is true, but it isn't using the system font.

--
Regards,
Paul Breneman
http://www.BrenemanLabs.com/
http://www.TurboControl.com/TPSupport.htm - TurboPower support links
.



Relevant Pages

  • Re: Why not use forms ParentFont for Vista?
    ... Setting ParentFont to True on the main form does not work for me. ... In answer to your first question, the main form does not have a parent form, ... But you still have to set the main form to use the system font. ...
    (borland.public.delphi.non-technical)
  • Re: Why not use forms ParentFont for Vista?
    ... Setting the ParentFont true on the main form does have some effect for me. ... Since the same program (with the main form ParentFont true) showed the default system font *NAME* on NT4 and XP I assumed it was picking up the system font. ...
    (borland.public.delphi.non-technical)