Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Click Event for MS Treeview Control?
Message
De
10/06/2003 17:46:40
 
 
À
10/06/2003 17:43:09
Owen Lyons
The Ssi Group, Inc.
Mobile, Alabama, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00798664
Message ID:
00798668
Vues:
40
>Is there a way to code for a right click event using the MicroSoft treeview control in VFP 6.0?
>The standard click events (Click and NodeClick) respond to both left and right clicks, and I would like to code a right click-specific response.
>

I've done this on the treeview control
FUNCTION Init
  This.AddProperty('ntime', 0)
ENDFUNC

FUNCTION MouseDown
*** ActiveX Control Event ***
LPARAMETERS button, shift, x, y
*-- Check to see if they right clicked
IF button = 2
   THIS.nTime = SECONDS()
ELSE
   THIS.nTime = -1
ENDIF
ENDFUNC

FUNCTION NodeClick
*-- Create Menu to check out and check in
IF BETWEEN(THISFORM.nTime, SECONDS() - _DBLClick, SECONDS())
   *-- Save the node we need it for the menu
   DO rightclick.mpr
ENDIF
ENDFUNC
There might be a better way.
Charles

"The code knows no master." - Chuck Mautz
"Everybody is ignorant, only on different subjects." - Will Rogers
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform