Here is the recent thread about this particular problem: <http://lists.wxwidgets.org/cgi-bin/ezmlm-cgi?11:mss:33225:200410:lfppnf okhnlgfialpfdh>
/Jean Brouwers In article <[EMAIL PROTECTED]>, Jean Brouwers <[EMAIL PROTECTED]> wrote: > If you are running GTK+ try using > > self.Editor.SetSTCFocus(True) > > in addition to or instead of SetFocus(). Plus maybe > > wx.CallAfter(self.Editor.EnsureCaretVisible) > > It solved the 'dissapearing caret' problem for our application. > > > /Jean Brouwers > > > > In article > <[EMAIL PROTECTED]>, > 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 ? > > -- http://mail.python.org/mailman/listinfo/python-list