Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DblClick in a TreeView
Message
De
24/12/2000 09:46:39
 
 
À
24/12/2000 08:57:44
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00456623
Message ID:
00456662
Vues:
27
Cetin,

Back to the DblClick in a TreeView...

I built a form that has a treeview and an imageslist. On the form I put a textbox for each of the following:

MouseDown
NodeClick
Node
Click
DblClick
Button
Shift
MouseUp

In each method I put code to increment the value in the text box for that method. i.e. in MouseDown method I put the following

WITH ThisForm
.txtMouseDown.Value = (.txtMouseDown.Value + 1)
.txtButton.Value = Button
.txtShift.Value = Shift
ENDWITH

What I found that MouseDown will fire AT LEAST once for each mouse click or dblclick. The speed in clicking varies the results. For example if you left click on a node and hold the button down for one second Click and MouseUp will not fire. Depending on the speed of a dblclick if DblClick will fire or not. NodeClick seems to be the second most relible method if fires 99% of the time click and dblclick about 50% of the time as I vary the speed of clicking with the mouse...

Any Ideas?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform