Paul Robson <[EMAIL PROTECTED]> wrote: > > I have a wierd thing with a little editor app I'm writing. > > I'm using wxStyledTextCtrl ; the wrapper for Scintilla. When I create the > frame in wxPython, I use self.Editor.SetFocus() to put the focus initially > on the editor. > > This works fine. > > Odd thing is though, switching back and forwards between applications > alternately hides and reappears the caret. > > Hit Alt-Tab twice and it disappears > Hit Alt-Tab twice and it comes back. > > It still works fine - there's just no caret. I've tried various things in > EVT_ACTIVATE including Moving the Caret on screen, and forcing it to be > visible - they are being called but it makes no difference. > > Any ideas ?
I don't know why the problem you are having happens, but I would just make a call to self.Editor.SetFocus() on an EVT_ACTIVATE event. - Josiah -- http://mail.python.org/mailman/listinfo/python-list