Is not the pw->SetFocus() call in the OnEnterWindow method
(CodeSnippetsTreeCtrl's EVT_ENTER_WINDOW handler)
causing that?
Yes. Thanks for the "heads up".
Fixed in SVN 5000
This will still happen to EditLabel if the user has DragScroll's "Focus-follows-mouse" enabled. But otherwise EditLabel should work ok.
The reason for this code: wxAUI does not pass on events to child frames of floating windows if the main floating window did not previously have the focus, and the user moved from the parent to the child.
For example, If the user clicks on the CodeSnippet floating window banner, then clicks into an CodeSnippetEditWindow, the cursor is not restored because the OS gave the edit window focus, but the window does not get the EVT_FOCUS_WINDOW, or EVT_CLOSE, nor other common events.