search for: evt_stc_chang

Displaying 1 result from an estimated 1 matches for "evt_stc_chang".

Did you mean: evt_stc_change
2007 Oct 24
1
Problems with creating my own syntax highlighter
Well, I wanted to make my own syntax highlighter using Wx::StyledTextCtrl. The easiest way to do it seemed to parse the text contents in a content-changed-event. But it doesn''t seem to work.. I tried to edit the scintilla sample and added this event(@sci is the StyledTextCtrl): @sci.evt_stc_change(@sci.get_id) do @sci.clear_document_style @sci.start_styling(1,31) @sci.style_set_font_attr(10, 10, "Courier", true, true, true) @sci.set_styling(2,10) puts 1 end This prints out "1" when you edit the text(twice actually, which i do...