how to detect why I got the focus
Harry
"harry dot news at armadillo dot fr" at a.mx.sunsite.dk
Tue Dec 4 06:59:15 PST 2007
Chris,
wxActivateEvent contains only the information that my application or
window got/lost the focus, not why/where.
I've searched the source of wxWidgets, without finding any code that
deals with the why/where.
I still hope that I've missed out on some simple solution.
Harry
chris elliott wrote:
> you need to handle a wxActivateEvent
>
> see
> http://biolpc22.york.ac.uk/wx/docs/html/wx/wx_wxactivateevent.html#wxactivateevent
>
>
> chris
>
> Harry wrote:
>>
>>
>> I need to detect why my frame has received the focus.
>> The reason for this is that I have quite a complicated constellation
>> of windows positioned within the frame.
>> If the user clicks by mistake inside the frame, I would like to
>> return the focus to his last window.
>> If the user clicks the frame by intention, for example to resize it,
>> I would like to let him do so without interference,
>> process the resize event, and only afterwards return the focus to his
>> last window.
>>
>> Under MSW I would process the WM_MOUSEACTIVATE message before getting
>> the focus to find out the reason why.
>> However, I haven't found any such mechanism in wxWidgets that allows
>> me this functionality.
>>
>> Anyone has any idea how I might detect why I got the focus in a
>> portable way ?
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
>> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
More information about the wx-users
mailing list