[Mono-winforms-list] NotifyIcon and ContextMenu redrawing issues ingnome

Andy Hume andyhume32 at yahoo.co.uk
Mon Oct 22 11:49:53 EDT 2007


Sound like  <https://bugzilla.novell.com/show_bug.cgi?id=324237>
https://bugzilla.novell.com/show_bug.cgi?id=324237 -- "NotifyIcon does
not send Paint events on X11".  You shouldn't need to do anything
special in your code if this was fixed. :-,(
 
Andy
 



  _____  

From: mono-winforms-list-bounces at lists.ximian.com
[mailto:mono-winforms-list-bounces at lists.ximian.com] On Behalf Of Erik
Renes
Sent: 22 October 2007 12:53
To: mono-winforms-list at lists.ximian.com
Subject: [Mono-winforms-list] NotifyIcon and ContextMenu redrawing
issues ingnome



Hi all, 

 

I'm not sure if this is the correct mailing list for reporting an issue
such as this, however it seems appropriate. 

 

When creating a test application that contains a windows form, a notify
icon and a context menu, I noticed that the notify icon does not get
redrawn if my context menu overlaps it partially. Other tray
applications (network manager, sound volume) seem to have worked around
the issue by placing their context menus _below_ the icon, instead of at
the place where the mouse click occurs. 

 

I have tried to reassign the same icon to the icon property every
second, so as to trigger a redraw - I just thought of maybe assigning a
different icon every second, haven't tested that yet, will do tonight -,
which had no effect. I also tried making the icon invisible, and then
visible, that works, however it is very noticeable by the user and is
therefore not really usable.

 

I am currently leaning towards finding some 'invalidateRect' function
(which would probably mean going native) or using custom code to place
my context menu below my notify icon. Both of which I think should not
be necessary, as the same code runs correctly on windows/mono. Are there
other applications that use notifyicons out there who have solved this
issue before? Additional info: I'm have seen this on Suse and Ubuntu,
both running in a VM, perhaps it is the vmware vga driver that is to
blame? 

 

Thank you for any help, 

 

Best regards,

Erik Renes.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-winforms-list/attachments/20071022/9dd954fd/attachment.html 


More information about the Mono-winforms-list mailing list