Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Right Click Event for MS Treeview Control?
Message
De
11/06/2003 07:21:33
 
 
À
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:
00798808
Vues:
46
Is there a way to code for a right click event using the MicroSoft treeview control in VFP 6.0?

I use code like this in MouseUp():
LPARAMETERS button, shift, x, y
LOCAL loNode
*** if we have a shortcut menu associated
*** with this treeview, show it if we right-clicked
*** But only show it if we have actually right-clicked
*** on a node, if we right-click on the '-' or '+' in front
*** of a node, there is not way to select it
IF Button = 2 AND NOT EMPTY( This.cMenu )
  *** Get a reference to the node under the mouse
  loNode = This.HitTest( X * This.nFactorX, Y * This.nFactorY )
  *** If we have a valid node, show the menu.
  IF NOT ISNULL( loNode ) 
    This.ShowMenu()
  ENDIF
ENDIF
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform