right click a tree node

S

Smokey Grindel

Is there any way to be able to right click a tree node and make sure that
the selected node is the one you right clicked? Right now I can select a
node then right click a different node and the previous node is the selected
one... any work arounds for this? thanks!
 
L

Lloyd Sheen

Smokey Grindel said:
Is there any way to be able to right click a tree node and make sure that
the selected node is the one you right clicked? Right now I can select a
node then right click a different node and the previous node is the
selected one... any work arounds for this? thanks!

On the mouse down event check if it is right mouse button. If so then do a
hittest to find the node that the mouse is over and make it selected. I had
same problem and this fixed it.

Hope this helps
Lloyd Sheen
 
C

Cor Ligthert[MVP]

Herfried,

Völlig klar, aber wahrscheinlich besser mit einigen Englisch für diejenigen,
die nicht Deutsch verstehen,

:)

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top