0

I need simple editor. I use special symbols. How redefine onPaint or other way what wxTextCtrl show line. For example:

My special <a> line have := differen symbol

How showing '< a >' in green color and symbol := show a bold '=' (without ':')

ideal is runing this special showing in all lines without actual cursor. Whole document without actual line.

Marko Lustro
  • 173
  • 1
  • 10

1 Answers1

0

You can't override painting of wxTextCtrl (or of any other native control for that matter), nor would you want to do it. You can define "text styles" for the regions in it however, see the "wxTextCtrl Styles" section of the documentation which should be enough for what you want to do.

And if you need more than this, wxStyledTextCtrl could be helpful.

VZ.
  • 21,740
  • 3
  • 39
  • 42
  • How modyfi wxTextCtrl? onPaint and whole area ot is any way to modyfy onli line? which function in wich object is drawing one line? – Marko Lustro Jan 09 '16 at 14:42
  • Here is goog tutorial to modyfy wxPanel, how modyfy wxTextCtrl? http://zetcode.com/gui/wxwidgets/customwidgets/ – Marko Lustro Jan 09 '16 at 14:53
  • Please reread the first sentence of my answer: there is no "function in which the object is drawing one line". You should change your approach instead of trying to do something in a wrong way. – VZ. Jan 09 '16 at 17:27
  • which function drawing signs in wxTextCtrl? – Marko Lustro Jan 10 '16 at 20:10
  • You really won't take "no" for an answer, will you? How do you think asking the same question over and over again will result in a different answer? There is **no** function to override for drawing `wxTextCtrl`. – VZ. Jan 12 '16 at 12:03