[Mono-winforms-list] NotifyIcon and ContextMenu redrawing issues ingnome
Erik Renes
keenriser at planet.nl
Tue Oct 23 02:17:08 EDT 2007
Hi Andy,
I think that is exactly the problem I am facing. I agree with your comment
over there that this bug is definitely not a duplicate of 324344, so it is
unfortunate that it has been closed.
I also think I could come up with some extremely dirty workaround, until the
bug is fixed (unfortunately the internals of XplatUIX11 are not really my
thing). That's something I'd have to do outside of company time though, I'll
let you know when I've come up with something. (I have an idea, and it may
well be the evilest code ever written).
Thanks again,
Erik
From: Andy Hume [mailto:andyhume32 at yahoo.co.uk]
Sent: maandag 22 oktober 2007 17:50
To: 'Erik Renes'; mono-winforms-list at lists.ximian.com
Subject: RE: [Mono-winforms-list] NotifyIcon and ContextMenu redrawing
issues ingnome
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/20071023/e30ead24/attachment.html
More information about the Mono-winforms-list
mailing list