If you are using PythonCard and are unable to upgrade to 2.3.1 or 2.3.2b7
beta please let me know in the next few days, otherwise I'm going to go
ahead and change the framework so that 2.3.1 is a minimum requirement. As
stated earlier, 2.3.2 will be the minimum requirement once that is out of
beta.
For the last week or so I've wasted a lot of time on bugs and workarounds
related to the native text control used by the wxPython wxTextCtrl on
Windows when the wxTE_RICH style is NOT used. wxTE_RICH is an option added
in wxPython 2.3.1 and when it is used the native text control is the
RichEdit control which supports styled text and large blocks of text; I
don't remember the actual size limit and it may be different depending on
which Windows platform you're using. Without wxTE_RICH, you can't do styled
text and fields are limited to 32K under Windows (makes me feel like I'm
using the Mac again ;-)
What I would like to do is go ahead and start using wxTE_RICH now, rather
than waiting for 2.3.2 to be released, so that I can do some testing. The
biggest problem with the 32K text control is that you have to count and keep
track of newlines manually under Windows in order to make sure all selection
and insertion operations work correctly which is a major pain.
What I'm thinking is that the TextArea widget would use wxTE_RICH, while the
TextField and PasswordField widgets would not use it since they are single
line fields. TextField would not be able to have mixed font styles, but I
don't think that should be a big problem.
I'm going to end up writing a separate helper class to help with managing
the style list for TextArea, since wxPython doesn't provide much help.
ka
|