my_control = new wx_text_control(&the_parent,-1, &the_frame,"",
wxPoint(-1,-1), wxSize(-1,-1),
wxTE_MULTILINE | wxHSCROLL | wxTE_RICH2);
my_control->SetEditable(true);
wxFont* tmpFont = new wxFont(11,wxMODERN,wxNORMAL,wxNORMAL);
my_control->SetFont(*tmpFont);
On Tue, 3 May 2005 08:46:52 -0700 aa...@meet-the-newmans.org wrote:
> Is there a magic spell? Here is my code for initializing the window:
>
> my_control = new wx_text_control(&the_parent,-1, &the_frame,"",
> wxPoint(-1,-1), wxSize(-1,-1), wxTE_MULTILINE
> | wxHSCROLL | wxTE_RICH2); my_control->SetEditable(true);
> wxFont* tmpFont = new wxFont(11,wxMODERN,wxNORMAL,wxNORMAL);
wxMODERN doesn't necessarily select monospaced font, wxTELETYPE does.
Regards,
VZ
--
TT-Solutions: wxWidgets consultancy and technical support
http://www.tt-solutions.com/
I will change my app to let the user choose.
Thanks,
Aaron
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-u...@lists.wxwidgets.org
> For additional commands, e-mail: wx-use...@lists.wxwidgets.org
>
>
>
O. Wyss
--
Development of frame buffer drivers: http://linux-fbdev.sf.net
Sample code snippets for wxWidgets: http://wxcode.sf.net
How to build well-designed applications: http://wyoguide.sf.net
Desktop with a consistent look and feel: http://wyodesktop.sf.net