Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
TreeView and right-click
Message
De
18/05/2001 15:07:28
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
 
À
17/05/2001 07:34:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00506933
Message ID:
00508938
Vues:
28
>Hi Sylvain,
>
>I have a programmers help file and a working example showing exactly what you want on my web site as well as a link to David F's site where he has another example of a treeview
>
>http://www.semo.net/suburb/thornton/visual.html
>
>enjoy
>
>>Hi everyone!
>>
>>I'm trying to check if the user right-clicked on a node, but I can't find anything. There is no NodeRightClick event, and the NodeClick doesn't provide which button was pressed. The MouseUp event does not seem to fire if I click/right-click on a node, only if I click somewhere else in the TreeView. MDOWN() won't allow me to distinguish between left and right click.
>>
>>Suggestions?
>>
>>Thanks!


*------------------------------------------------------
assuming you are using microsoft treeview control ...

if you are checking for thisform.tv.rightclick()
you are checking for the activeX event. you need
to check the event for the container.

i.e. thisform.tv.object.rightclick()

you can still use the currentnode property of the
treeview control to determine which node was selected
*------------------------------------------------------
patrick
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform