>You have to use the mousedown event with code something like this:
>
>LPARAMETERS button, shift, x, y
>IF Button = 2 && User right clicked
> DO TreClick.Mpr
>ENDIF
Hi Mike,
as the mousedown event always fires if you press a mouse button, the upper commands will start the TreClick.Mpr even if no ListView Element is clicked.
So you have to enhance the whole thing a little bit.
IF button = 2
this.parent.llRightClick = .T. (llRightClick is a user-defined property)
ENDIF
After the mousedown event, the click-event of the ListView ActiveX fires
IF this.parent.llRightClick
this.parent.llRight.Click = .F.
DO TreClick.Mpr
ELSE
...
...
ENDIF
Regine
********************************
VFP, VB, VC++ Programmers
Makers of the ==>TheMiL<== engine
for intra- and internet data processing
********************************