Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Lastkey() Loop within oTreeview: MouseUp
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00815757
Message ID:
00816178
Views:
21
Hi Daniel,

There are several oddities with the right mouse button events in the Treeview control which may explain what you are seeing:

1. The MouseUp() event for the right button will not normally fire if there are intervening MouseMove() events. (This is most likely the root of your problem)

2. If the right button is depressed and immediately followed by the pressing of left button (with no intervening MouseMove()'s) the pressing down of the left button with trigger the MouseUp() event of the right button.

3. Normal behaviour if both buttons are depressed and subsequently released is for only one MouseUp() event to be fired but there are exceptions to this.
Take the following four scenarios (where LD = Left Down, RU= Right Up, MD(L) = MouseDown(left) etc):

LD, Move, RD, LU, RU : Events MD(L),MM(n)..,MD(R),MU(R)
LD, Move, RD, RU, LU : Events MD(L),MM(n)..,MD(R),MU(R)
RD, Move, LD, LU, RU : Events MD(R),MM(n)..,MD(L),MU(L)
RD, Move, LD, RU, LU : Events MD(R),MM(n)..,MD(L),MU(R),MU(L)!

Notice in the first three examples that the MouseUP() event fires for the last depressed button only. But in the fourth this fires for BOTH buttons (as does the Click() event).

All in all it may be better if you could use the MouseDown() events to handle the right mouse button actions ?

Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform