how to detect why I got the focus

Chris Mellon arkanes at gmail.com
Thu Dec 6 10:13:57 PST 2007


On Dec 6, 2007 4:10 AM, dot news at armadillo dot fr"@a.mx.sunsite.dk
Harry <"harry> wrote:
>
>
>  Nobody has any ideas ?
>  Do I then conclude that a solution to my problem doesn't exist at the
> moment ?
>
>  Harry
>
>

You can always implement this yourself of course. I know that certain
types of windows on some other platforms have this behavior natively,
you might check to see if wxMiniFrame or something like it does this
on wxMac or wxGTK.

You can file a feature request or submit a patch yourself. I'd suggest
something like the following: If the frame has the wxFRAME_TOOL_WINDOW
style, and no children of the frame accept the focus, and the
activation event wasn't a non-client event, then reject the activation
and don't take the focus. This is probably a useful discussion for
wx-dev.




More information about the wx-users mailing list