Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lastkey() Loop within oTreeview: MouseUp
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00815757
Message ID:
00816178
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform