Hi,
I've an "editor" window based on wxStyledTextCtrl which is used to show some SQL code. If I want to navigate (place the caret), I have to use the mouse. It is not possible to navigate using the cursor keys. Inserting text and removing text works ok.
Does anyone have a clue what I may have done wrong. I have based my code on the wxPython demo-example. The event EVT_STC_UPDATEUI is mapped to the following method:
def OnUpdateUi(self, event):
lc = self.GetCurrentLine()
try:
self.TreeWindow.SetActiveNode(lc+1)
except:
pass
where the activates a 'node' in a tree control (corresponding to line number).
Thanks for any help.
Nikolai Kirsebom