Closed GoogleCodeExporter closed 8 years ago
Confirmed (windows only issue)
This problem existed once before but the workaround does not seem to work with
the
new notebook control. Spent a lot of time on this today and an rather stuck.
For some
reason the focus will not go to the tab it is supposed to when switching via the
smart tab feature...
Original comment by CodyPrec...@gmail.com
on 9 May 2010 at 6:07
I've given this a few cycles of brain without luck.
Basically I think that relevant code should be in:
EdPages::ChangePage
and maybe in:
EdEditorView::DoDeactivateTab
Tried to play with STC Get/SetSTCFocus, no luck.
Tried to build a left mouse click event and send it to the STC control, no luck
either.
At the moment I've no idea on how to handle this stuff...
Original comment by cow...@gmail.com
on 13 May 2010 at 8:59
Thanks for testing. I have a few more ideas I am going to try. I think that the
root
of the problem is in src/extern/aui/auibook.py. I think that the tab navigator
window
gets shown in the middle of a key event and then when a selection is made it
calls
set focus. After the setfocus is processed the keyevent returns and I think
that on
windows it must cause the focus to shift back to the window where the key event
originated from.
Think that possibly using CallAfter to call SetFocus in the auibooks code may
work.
(I can only hope as this has been a painful issue to work on.
Cody
Original comment by CodyPrec...@gmail.com
on 13 May 2010 at 12:32
Should be fixed in svn now. Finally found the magic touch ;)
Original comment by CodyPrec...@gmail.com
on 13 May 2010 at 4:45
Oh yeah! Works in SVN HEAD, wxMSW 2.8.10.1-unicode, Windows XP SP2.
Great job, man!
Original comment by cow...@gmail.com
on 14 May 2010 at 8:02
Original issue reported on code.google.com by
cow...@gmail.com
on 6 May 2010 at 10:26