Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Treeview RightClick
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00691817
Message ID:
00693239
Vues:
25
>
>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
>  *** nFactorX and nFactorY are used to convert pixels to twips
>  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
>
Thanks. I'm doing something similar except I have to check which node is selected and drop a different menu depending on the node.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform