Re: Dynamically changing wxTextCtrl from wxTE_MULTILINE to non-multiline
"Robert Roebling" <[email protected]> Thu, 06 Jan 2005 13:42:28 +0100
| Newsgroups | gmane.comp.lib.wxwindows.wxnet |
|---|---|
| Message-ID | <[email protected]> |
> i used wxDesigner 2.10c (Red Hat Linux 9.0) to create a frame. inside > which is a wxBoxSizer that contains a wxTextCtrl. i want to be able > to change the wxTextCtrl to single or multi line depending on the > user's needs. i tried designing the frame using a single-line version > of wxTextCtrl, then changing the wxTE_MULTILINE bit using > SetWindowStyleFlag after the frame has been created You cannot change the style of a wxTextCtrl from one to another after it has been created. I don't know of Win32 allows for that, but wxWidgets doesn't. Robert ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt