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



Setting ParentFont to True on the main form does not work for me. It still
doesn't pickup 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.

I am curious if this works for anyone else.

Matthew


"Paul Breneman" <SeeWebPageForEmailAddress@xxxxxxxxxxxxxxxx> wrote in
message news:45bf88c2$1@xxxxxxxxxxxxxxxxxxxxxxxxx
Matthew,

This method works very well for me.

But you still have to set the main form to use the system font. Don't you
?

I'm not doing anything different for the main form. I just have that set
with ParentFont true just like all the other forms.

My simple test application seemed to get the correct system font under
different OSs, but I have these two questions:

1) Why does Delphi default to having ParentFont false on forms? Am I
asking for problems by setting it to true?

2) Will using ParentFont true on all of the forms (and controls) make
things better or worse for internationalization?

If the font properties allowed modifiers like "ParentFont + [fsBold]" (as
well as size increases) then I wouldn't need any fixed fonts in the DFM
files, nor any code to adjust things. That seems like the ideal but right
now the form controls needing different fonts are still fixed to Tahoma.
I still need to adjust those using code I guess.

--
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 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)
  • Re: Why not use forms ParentFont for Vista?
    ... You are correct that it doesn't pick up the system font. ... 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)
  • Re: Why not use forms ParentFont for Vista?
    ... 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. ... I didn't change the system font on XP but I'll try that and let you know. ... I don't expect this to track a system font change while the program is running. ...
    (borland.public.delphi.non-technical)