On Mar 22, 2006, at 6:18 PM, [EMAIL PROTECTED] wrote:
rag a listbox onto a window and set it to have a header and toss
some data in. In the Listbox Mousedown Event put:
Function MouseDown(x As Integer, y As Integer) As Boolean
If IsContextualClick and Y < 20 then
Return True
End if
End Function
in the ConstructContextual menu event put:
Function ConstructContextualMenu(base as MenuItem, x as Integer, y
as Integer) As Boolean
Dim Test as New MenuItem
Test.Text = "test"
Base.Append Test
Return True
End Function
Run it in the IDE and right click on the listbox header. I get a
contextual menu even though true is returned in MouseDown. Should
I? I thought returning true in mousedown should stop all other
processing.
FTR on OSX i DO NOT get a ContextualMenu when right clicking on the
title bar... But I do on Win2K so that is a bug on Win2K ...
I've run into a lot of event strangeness on Windows over the last few
months when doing non trivial stuff ... this looks like more of it.
<sigh>
Anyway for those doing Xplatform developing these things can be
subtle gotchas...
- Karen
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>