[wx-dev] wxFontNotebookPage
Igor Korot
ikorot at earthlink.net
Mon Mar 5 10:04:36 PST 2007
Then the only solution I can see is to extract the code from the dialog
and create such a page in my own code. Just like MFC does... :(
Sorry for the confusion.
Thank you.
-----Original Message-----
>From: Julian Smart <julian at anthemion.co.uk>
>Sent: Mar 5, 2007 2:01 AM
>To: wx-dev at lists.wxwidgets.org
>Subject: Re: [wx-dev] wxFontNotebookPage
>
>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
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: wx-dev-unsubscribe at lists.wxwidgets.org
>For additional commands, e-mail: wx-dev-help at lists.wxwidgets.org
>
More information about the wx-dev
mailing list