Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TreeView and right-click
Message
From
18/05/2001 15:07:28
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, United States
 
 
To
17/05/2001 07:34:54
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00506933
Message ID:
00508938
Views:
29
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform