[wx-dev] [wxMac] spell checker off in wxTextCtrl by default ?

Robin Dunn robin at alldunn.com
Thu Jun 14 14:41:18 PDT 2007


Kevin Ollivier wrote:

> As a side note, I really, really wish we had the ability to pass in some 
> sort of wxSettings data structure to a class constructor as an extension 
> of the flags system we currently use, using an approach similar to 
> wxSystemOptions. We could even have a static 
> wxWindow::SetDefaultSettings(wxSettings) which would effectively allow 
> us to customize the default settings each control is created with 
> similar to wxSystemOptions, but in IMHO a more logical place and more 
> flexible too. There is frequently debate when adding flags about them 
> filling up, and IMHO we really need an alternative without such 
> limitations.

Or use flags that are objects, not bits in an integer.  With operator 
overloading it could be made to behave nearly the same as the bits do 
today, but instead of an integer the widget would be getting an instance 
of some flags container class that can be asked if a particular flag is 
set.  There would then be no limits on how many flags are possible, and 
we could even eventually have some sort of validation checks that 
asserts if a particular flag is not applicable to a specific widget type.

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wx-dev mailing list