[wx-dev] wxFontNotebookPage

Julian Smart julian at anthemion.co.uk
Mon Mar 5 02:01:19 PST 2007


Vadim Zeitlin wrote:
> On Mon, 5 Mar 2007 02:41:33 -0500 (EST) Igor Korot <ikorot at earthlink.net> wrote:
>
> IK> Since there is a wxFontDialogGeneric class, in order to
> IK> avoid code duplication I was thinking about adding the
> IK> boolean variable to the constructor of this dialog, indicating
> IK> what we will create.
>
>  How exactly is this going to work? You can't create either a dialog or a
> panel. To do what you want you need to extract all wxFontDialogGeneric code
> into some wxFontPanel class and use it both from the dialog and your code.
>
>  This being said, I consider the idea of using a standard dialog inside a
> notebook page quite strange to begin with.
>   
Just for info, there's a font page in the standard rich text formatting 
dialog; you may wish
to apply various text styles to a range of content in a control, and 
font is just one of them.

But it doesn't try to be totally identical to a standard dialog, and I'm 
not sure how generally
useful it would be to try to unify a font page and the standard font 
dialog. You'd then be
wanting to do the same for other standard dialogs for consistency, and 
whether they would
actually meet everyone's need for pages in their formatting dialogs is 
unknowable. Maybe it's
something of more theoretical benefit than actual.

Regards,

Julian




More information about the wx-dev mailing list