Default font - IDE and user application

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Default font - IDE and user application

Edward Stow
Hi all
How would you set a default font for the controls that are part of an
application but retain a different default for the IDE. (And I do not
want to manually change all the views to have the larger font.)

My users want a larger font for their application - but I want to
retain the standard default in the IDE.  

Thanks
--
Edward Stow


Reply | Threaded
Open this post in threaded view
|

Re: Default font - IDE and user application

Support at Object Arts
"Edward" <[hidden email]> wrote in message
news:[hidden email]...
> Hi all
> How would you set a default font for the controls that are part of an
> application but retain a different default for the IDE. (And I do not
> want to manually change all the views to have the larger font.)
>
> My users want a larger font for their application - but I want to
> retain the standard default in the IDE.
>

Since the fonts are inherited along the parent chain, you could just set it
on the top-level views in the VC. However I usually make the fonts
configurable in my application (except in dialogs), and then store away the
font in the registry's current user hive, or in isolated storage. I usually
apply these font settings from an #applyOptions method I define on the shell
presenters that I invoke from the #onViewOpened. This idiom is used a little
in the IDE too.

Regards

Blair


Reply | Threaded
Open this post in threaded view
|

Re: Default font - IDE and user application

Edward Stow
Support at Object Arts wrote:

> "Edward" <[hidden email]> wrote in message
> news:[hidden email]...
> > Hi all
> > How would you set a default font for the controls that are part of an
> > application but retain a different default for the IDE. (And I do not
> > want to manually change all the views to have the larger font.)
> >
> > My users want a larger font for their application - but I want to
> > retain the standard default in the IDE.
> >
>
> Since the fonts are inherited along the parent chain, you could just set it
> on the top-level views in the VC. However I usually make the fonts
> configurable in my application (except in dialogs), and then store away the
> font in the registry's current user hive, or in isolated storage. I usually
> apply these font settings from an #applyOptions method I define on the shell
> presenters that I invoke from the #onViewOpened. This idiom is used a little
> in the IDE too.
>
> Regards
>
> Blair

Thanks -- now that it is pointed out it seems obvious to set fonts in
the top level view.