* 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>