[wx-dev] [wxMac] spell checker off in wxTextCtrl by default ?
Robin Dunn
robin at alldunn.com
Fri Jun 15 08:55:47 PDT 2007
Vadim Zeitlin wrote:
> On Thu, 14 Jun 2007 20:35:16 -0700 Robin Dunn <robin at alldunn.com> wrote:
>
> RD> * Have some wxFlag class that holds a string
>
> The problem here is that you won't be able to catch typos at compile-time
> any more and this is pretty bad. We clearly need some way of creating
> wxFlag from strings to make it work with XRC but the normal code should be
> using wxTE_READONLY, not "wxTE_READONLY".
That's what the predefined instances would be for. wx would have
wxFlag wxTE_READONLY("wxTE_READONLY");
And the user code could use wxTE_READONLY similarly (or maybe same as)
it currently does.
> And XRC should have some way to
> validate the string, i.e. each wxWindow-derived class should have some
> "wxArrayString GetValidFlags()" method or maybe just "bool
> IsValidFlags(wxString)".
Yep, I mentioned something like that in my original response to Kevin.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
More information about the wx-dev
mailing list