This is a migrated thread and some comments may be shown as answers.
IsActiveWindow bug?
2 Answers 26 Views
This is a migrated thread and some comments may be shown as answers.
Trude
Top achievements
Rank 2
Trude asked on 23 Feb 2010, 11:21 AM
I have setup a LostFocus event on every window that checks the IsActiveWindow property every time the windows loses focus (for debugging purposes). If I have two or more windows and switch between them (by clicking on the border or content) the property correctly gets set to FALSE. However, if the window loses focus to a menu (I use your radmenu) the property stays TRUE (the visual state of the window is unfocused). The problem is that when I click on the header/border of the window afterwards - the GotFocus event is not fired (probably because the IsActiveWindow is TRUE) and the window stays unfocused. I have to click the content area to fire the GotFocus event.

2 Answers, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 23 Feb 2010, 12:43 PM
Hi Jorn,

 The activation and focus of the RadWindow control are not connected - window can have the focus and be the active window and can have no focus and again to the focused window - both scenarios are correct. What I could suggest you is to use the Activated event instead of the Focused event.

Hope this helps!

Regards,
Miroslav Nedyalkov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Trude
Top achievements
Rank 2
answered on 23 Feb 2010, 07:58 PM
Ok, I have played around with the code and managed to achieve what I wanted with just the Activated event (as an added bonus the code got cleaner :)). I thought the two events were connected, but obviously they are not - thanks for the tip!
Asked by
Trude
Top achievements
Rank 2
Answers by
Miroslav Nedyalkov
Telerik team
Trude
Top achievements
Rank 2
Share this question
or