thanks in advance
Set the Font property of the form and every component you later drop on
it (and even existing ones that have ParentFont := true) will adopt the
forms font.
There was a way to change the default font used by the IDE designer
through a registry entry in older versions but it does not work with
D2007 anymore, as far as I remember. So the best way to achieve the
same effect is to create a form with the desired properties (font,
scaled, position are things you may want to have the same for all
forms), save that to a template directory and add it to the repository.
For a new GUI project you then simply delete the default form and
inherit all your forms from this template base form through visual form
inheritance. You can even create a project template which you add to
the repository and then use that instead of the default for a new GUI
application. Search the RAD Studio online help index for "Template
libraries", that gets you to some information about how to do that.
--
Peter Below (TeamB)
Don't be a vampire (http://slash7.com/pages/vampires),
use the newsgroup archives :
http://www.tamaracka.com/search.htm
http://groups.google.com
> There was a way to change the default font used by the IDE designer
> through a registry entry in older versions but it does not work with
> D2007 anymore, as far as I remember.
Last time I checked it still worked (at least under CRS2007 using
Delphi WIn32). You no need to restart the IDE to get the new settings
and it will of course not work for existing forms only for new forms.
--
Pieter
Hm, I just tried it (http://dn.codegear.com/article/26668) and it does
not seem to have an effect after starting the IDE. I set the
DefaultFont to "Tahoma,10" and a new form still comes up with Tahoma 8
pt as font.
| Hm, I just tried it (http://dn.codegear.com/article/26668) and it does
| not seem to have an effect after starting the IDE. I set the
| DefaultFont to "Tahoma,10" and a new form still comes up with Tahoma 8
| pt as font.
Yeah,... that's been annoying me for eleven months now. <g>
--
Q
03/05/2008 14:03:14
XanaNews Version 1.17.5.7 [Q's Salutation mod]
> Last time I checked it still worked (at least under CRS2007 using
> Delphi WIn32). You no need to restart the IDE to get the new settings
> and it will of course not work for existing forms only for new forms.
Should read: You need to restart the IDE...
--
Pieter
> Hm, I just tried it (http://dn.codegear.com/article/26668) and it does
> not seem to have an effect after starting the IDE. I set the
> DefaultFont to "Tahoma,10" and a new form still comes up with Tahoma 8
> pt as font.
Hmm, works for me, only the name should be within quotes (actually only
needed when it has spaces in it). So Tahoma, 10 works for me, as does
the following:
HKEY_CURRENT_USER\Software\Borland\BDS\5.0\FormDesign
DefaultFont = "MS Sans Serif", 24, bold
Gives me the font on every *newly* created form.
(And, no, that is not my default font :)
--
Pieter
Using Delphi Win32 (CRS2007 with December update) on WinXP SP2.
Fully updated, well almost, Java is nagging right now ;-)
> Peter Below (TeamB) wrote:
>
> > Hm, I just tried it (http://dn.codegear.com/article/26668) and it
> > does not seem to have an effect after starting the IDE. I set the
> > DefaultFont to "Tahoma,10" and a new form still comes up with
> > Tahoma 8 pt as font.
>
> Hmm, works for me, only the name should be within quotes (actually
> only needed when it has spaces in it). So Tahoma, 10 works for me, as
> does the following:
The quotes were only for the newsgroup post, i entered the name without
them. Using quotes around the name does not change the result, the
setting is ignored for me.
> Pieter Zijlstra wrote:
> > Peter Below (TeamB) wrote:
> > > Hm, I just tried it (http://dn.codegear.com/article/26668) and it
> > > does not seem to have an effect after starting the IDE. I set the
> > > DefaultFont to "Tahoma,10" and a new form still comes up with
> > > Tahoma 8 pt as font.
> >
> > Hmm, works for me, only the name should be within quotes (actually
> > only needed when it has spaces in it). So Tahoma, 10 works for me,
> > as does the following:
>
> The quotes were only for the newsgroup post, i entered the name
> without them. Using quotes around the name does not change the
> result, the setting is ignored for me.
Hmm, strange!
What did you do to break your Delphi or isn't it supposed to function
anymore and is my Delphi broken? ;-)
--
Pieter
> What did you do to break your Delphi or isn't it supposed to function
> anymore and is my Delphi broken? ;-)
I can only say that it has ceased to work for me with D2006, on both
PCs I use Delphi on (both XP SP2). Perhaps you have some add-in
installed that recovers the functionality.
Also doesn't work here, using Turbo Delphi Win32 Explorer. I see the
hardcoded terms "FormDesign" and "DefaultFont" exist in
delphivclide100.bpl, but when I enter the registry setting, I still get
Tahoma 8 as the forms's font.
It's unlikely that it has to do with the OS, but I'm using Vista Home
Premium here.
--
The bigger the theory the better.
...und wech
Danny <dannys9 (at) gmx (dot) de>
> Pieter Zijlstra wrote:
>
> > What did you do to break your Delphi or isn't it supposed to
> > function anymore and is my Delphi broken? ;-)
>
> I can only say that it has ceased to work for me with D2006, on both
> PCs I use Delphi on (both XP SP2). Perhaps you have some add-in
> installed that recovers the functionality.
I have it working in both BDS2006 Pro and CRS2007 Pro (using Delphi
Win32 only). The only add-in I have in both is DelphiSpeedUp 2.72.
Especially the CRS2007 is a clean install, a couple of components but
nothing I can think of which could (or should) have such a side effect.
BTW also on XP SP2 fully updated.
Just un-installed DelphiSpeedUp, makes no difference.
--
Pieter
> Pieter Zijlstra wrote:
>
> > What did you do to break your Delphi or isn't it supposed to
> > function anymore and is my Delphi broken? ;-)
>
> I can only say that it has ceased to work for me with D2006, on both
> PCs I use Delphi on (both XP SP2). Perhaps you have some add-in
> installed that recovers the functionality.
I think I know what might make a difference, when I switch on Embedded
Designer it doesn't work anymore. When I switch it off again then it is
working.
--
Pieter
Yes, really, you're right!
--
If a listener nods his head when you're explaining your program, wake
him up.
> > > Pieter Zijlstra wrote:
> > > > What did you do to break your Delphi or isn't it supposed to
> > > > function anymore and is my Delphi broken? ;-)
> > >
> > > I can only say that it has ceased to work for me with D2006, on
> > > both PCs I use Delphi on (both XP SP2). Perhaps you have some
> > > add-in installed that recovers the functionality.
> >
> > I think I know what might make a difference, when I switch on
> > Embedded Designer it doesn't work anymore. When I switch it off
> > again then it is working.
>
> Yes, really, you're right!
Thanks for the confirmation!
Although I think it is just a minor thingy, I reported it anyway :)
Report No: 59238 Status: Reported
The "registry hack" to change the font used for new forms does not work
in the embedded form designer
http://qc.codegear.com/wc/qcmain.aspx?d=59238
--
Pieter
> Peter Below (TeamB) wrote:
>
>
> I think I know what might make a difference, when I switch on Embedded
> Designer it doesn't work anymore. When I switch it off again then it
> is working.
Ah, that would explain why it does not work for me, since i used the
embedded designer layout.