-
I'm using a TreeView MouseDown Event to set a public mousebutton integer. In the TreeView Node click event I'm using this integer to check if I pressed the right button.
If I did, I'm popping up a menu. However, if I then click on another node (without getting rid of the popup) with the left button, the popup for that node appears.
Using some Debug.Prints I found that the MouseDown event is not fired, hence the NodeClick routine doesn't know that I've 'changed' buttons. What can I do about this? Why doesn't NodeClick have a button integer argument?
Anyone?
-
This problem has never occurred to me, but i have used the exact same method as you do since nodeclick don't have button argument. Maybe you could just use the mouse down event and use hittest method to get the clicked node, and by using "if node is nothing" you could check if a node was clicked at all