Is it possible to change the text style while typing ie. pressing a
button on a toolbar. Like pressing a bold or italics button in
OpenOffice Writer.
Typing directly into the text control does not seem to fire the
WriteText or AppendText methods so SetDefaultStyle isn't working or
at least in my app it isn't. Catching EVT_TEXT seems to be the way to
go, but setting the style with SetStyle or SetDefaultStyle fails.
Is it possible to change the text style while typing ie. pressing a button on a toolbar. Like pressing a bold or italics button in OpenOffice Writer.
Typing directly into the text control does not seem to fire the WriteText or AppendText methods so SetDefaultStyle isn't working or at least in my app it isn't. Catching EVT_TEXT seems to be the way to go, but setting the style with SetStyle or SetDefaultStyle fails.
Anyone with some pointers?
The current style setting capabilites of wxTextCtrl really don't work well for things like this. There has been talk of doing a more general purpose rich text editor class and leave wxTextCtrl for what it is designed for, simple text fields, but I don't think much work has been done on it yet.
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!