Righ Mouse in TreeView

Righ Mouse in TreeView

Post by Brian P. H » Fri, 18 Jul 2003 08:30:04


This is a multi-part message in MIME format.


How do I determine what node was clicked with the right mouse button? I have a context menu that pops open and have delete as an option. Unless the user first selects the node, the node that was last left clicked will be deleted and not the one the user right clicked one. Any example would be great.

It seems odd that this would not be a part of the tree collection?

--
Brian P. Hammer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1170" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>How do I determine what node was clicked with the right mouse button? 
I have a context menu that pops open and have delete as an option.  Unless
the user first selects the node, the node that was last left clicked will be
deleted and not the one the user right clicked one.  Any example would be
great.</DIV>
<DIV> </DIV>
<DIV>It seems odd that this would not be a part of the tree collection?</DIV>
<DIV><BR>-- <BR>Brian P. Hammer</DIV></BODY></HTML>