Using Markers in wxSTC

I have pasted the code in question at the following link:
http://rafb.net/paste/results/aTtExV45.html

Note: GetColor() returns a predefined wxColour object

Rather than mark the specified line using the specified background, no
background is set, and a little circle is put to the left of the line
(neither of those, obviously, are correct for the type of marker I'm
defining.)

Is this only happening to me, or is there something wrong with my code?

···

--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/

Daniel Bickett wrote:

I have pasted the code in question at the following link:
http://rafb.net/paste/results/aTtExV45.html

Note: GetColor() returns a predefined wxColour object

Rather than mark the specified line using the specified background, no
background is set, and a little circle is put to the left of the line
(neither of those, obviously, are correct for the type of marker I'm
defining.)

Is this only happening to me, or is there something wrong with my code?

Changing the STC_MARK_CIRCLE to a STC_MARK_BACKGROUND in the StyleTextCtrl_1.py demo works for me.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I found the problem. I was using wxNewId() to give the marker ids, and
apparently they don't like high numbers, because things like 104 won't
work, but 1 will. That's awfully strange...

···

--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/

Daniel Bickett wrote:

I found the problem. I was using wxNewId() to give the marker ids, and
apparently they don't like high numbers, because things like 104 won't
work, but 1 will. That's awfully strange...

From Scintilla Documentation

"There are 32 markers, numbered 0 to 31, and you can assign any combination of them to each line in the document."

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

I see :slight_smile: Thank you for pointing that out.

···

--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/