[Mono-bugs] [Bug 324830] Context menu is not closed when focus is lost

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu May 8 04:58:00 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=324830

User ecanuto at novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=324830#c2





--- Comment #2 from Everaldo Canuto <ecanuto at novell.com>  2008-05-08 02:58:00 MST ---
Hey,

Yes, that is right, we must call SetForegroundWindow as I see in this thread:

http://www.msnewsgroups.net/group/microsoft.public.dotnet.languages.csharp/topic35558.aspx

"The reason it works as a ContextMenu and not when Show is just called is
that the NotifyIcon p/invokes SetForgroundWindow before showing its
ContextMenu. To get this behavior, the user would have to do the same and
p/invoke SetForegroundWindow"


So, looks that theres no other way to do it on Win32, I am going to implement
your solution.


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list