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



Have you tried changing the system font and does your application pick up
the new font ?

Your method still does not work for me.

Matthew

"Paul Breneman" <SeeWebPageForEmailAddress@xxxxxxxxxxxxxxxx> wrote in
message news:45bf5bac@xxxxxxxxxxxxxxxxxxxxxxxxx

A while back I upgraded an application from Delphi-5 to Delphi-2005. In
Delphi-5 the default form font is MS Sans Serif and in Delphi-2005 the
default form font is Tahoma. I initially thought of using some code to
set the form's font to the Windows system font at runtime, but then I
tried just setting all of the form's ParentFont to true (which is false by
default) and that seemed to work good and without any code. I searched
all of the DFM files and made sure that all controls had ParentFont true
except when it was necessary to change a control's font size or attribute.
The result was that the entire application would automatically use the
Windows system font and the only exception were those controls that needed
different fonts.

Using the form's ParentFont this way means that the application should
pick up the system font properly on Win98, NT4, XP, and Vista.


.



Relevant Pages

  • Re: Why not use forms ParentFont for Vista?
    ... But you still have to set the main form to use the system font. ... tried just setting all of the form's ParentFont to true (which is false by ... Why does Delphi default to having ParentFont false on forms? ...
    (borland.public.delphi.non-technical)
  • Re: Problems with locales
    ... The garbled text during FBA means the default system font is set to some non ... english font. ... This system font is defined by a reg key. ... locale stuff from the SLX, ...
    (microsoft.public.windowsxp.embedded)
  • Re: Printing panic
    ... I feel a fool owning up to the reason for Easiwriter not printing my ... System Font in EasiWriter. ... I was using EasiWriter to compose a text and graphics document. ...
    (comp.sys.acorn.apps)
  • Re: Why cant I use a system font with the same name as an embedde
    ... I'm guessing that the Garamond used in your PPT wasn't ... The problem we were having is that the true-type embedded font looked ... I needed to edit the true-type to be the system font, ...
    (microsoft.public.powerpoint)
  • Re: Dialog Fonts
    ... I've got an application with a bunch of controls on it, eg, static text. ... > I'd sized and laid out everything so that it looks good. ... > How do I get what the system font is? ...
    (microsoft.public.vc.mfc)