Thanks for the push toward STC -- it's great and I'm using it happily. But I haven't been able to figure out how to do what the name says: style text. No combination of StartStyling and SetStyling, or StyleSetSpec(wxSTC_STYLE_DEFAULT) and StyleClearAll, seems to have any visible effect.
It's not even clear to me from the document (Yellowbrain) whether styling can/must be applied to already-displayed text or a string about to be displayed.
All I want to do is set one of the two STCs in my main Frame so that all text displayed in it will be monospaced (so font Courier).
Thanks for the push toward STC -- it's great and I'm using it happily. But I haven't been able to figure out how to do what the name says: style text. No combination of StartStyling and SetStyling, or StyleSetSpec(wxSTC_STYLE_DEFAULT) and StyleClearAll, seems to have any visible effect.
It's not even clear to me from the document (Yellowbrain) whether styling can/must be applied to already-displayed text or a string about to be displayed.
Have you looked at the code in the StyledTextCtrl_1 sample in the demo?
ยทยทยท
--
Robin Dunn
Software Craftsman http://wxPython.org Java give you jitters? Relax with wxPython!