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 only works if I set the main form's font via code.

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: 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: 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: 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: setting the current System Font
    ... I'd like it to assume the current System font ... and unfortunately ContextMenuStrip1 nevere appeared with the 'Comic Sans' ... and when dispose it. ...
    (microsoft.public.dotnet.languages.vb)