Re: Why not use form's ParentFont for Vista?
- From: "MJMatthew" <REMOVE_THIS_TEXTMattyMarsh2@xxxxxxxxxxxxxx>
- Date: Wed, 31 Jan 2007 14:26:01 -0000
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.
.
- References:
- Why not use form's ParentFont for Vista?
- From: Paul Breneman
- Why not use form's ParentFont for Vista?
- Prev by Date: Re: Why not use form's ParentFont for Vista?
- Next by Date: vst kit installing + compling *newbie*
- Previous by thread: Re: Why not use form's ParentFont for Vista?
- Next by thread: How to move frame
- Index(es):
Relevant Pages
|