Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview control
Message
 
To
21/10/2005 12:09:56
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01061022
Message ID:
01061136
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Alessio, this is what I do:
* In oTree.MouseDown:

if m.Button = 2
    this.lRightClick = .T.
endif

* In oTree.NodeClick:

if this.lRightClick
    this.lRightClick = .F.
    * The code you want, a pop-up menu for example
endif

* in oTree.Init:

Addproperty(this, 'lRightClick', .f.)
I copied this from an old message I posted some time ago in the spanish newsgroups, I hope I copied it right, for it was sparsed in a couple of messages <g>
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Previous
Reply
Map
View

Click here to load this message in the networking platform