I'm aware of the ability to set the background color of the line on
which the caret sits in a wxStyledTextCtrl, however is it possible to
set the background color of arbitrary line numbers?
Thanks,
···
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
Daniel Bickett wrote:
I'm aware of the ability to set the background color of the line on
which the caret sits in a wxStyledTextCtrl, however is it possible to
set the background color of arbitrary line numbers?
Thanks,
Here's a code snippet extracted from my program which does that.
Some work required to put it in context for you.
HTH,
André
···
#==================
class rur_editor(PythonSTC):
def __init__(self, parent, ID):
PythonSTC.__init__(self, parent, ID)
#[snip]
self.MarkerDefine(7, stc.STC_MARK_BACKGROUND, 'white', 'wheat')
self.marked_line = -1
#--- end of __init__()
def highlight(self, line):
if self.marked_line != -1:
self.MarkerDelete(self.marked_line, 7)
self.MarkerAdd(line, 7)
self.marked_line = line
I'm using your code just as you've done, and I've even consulted other
documentation regarding it, however this doesn't seem to be working
for me. All I get is a white circle on the line's margin, rather than
a background color.
···
On 5/30/05, André Roberge <andre.roberge@gmail.com> wrote:
Here's a code snippet extracted from my program which does that.
Some work required to put it in context for you.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/