Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to fire the right click on item in ListView object.
Message
From
29/04/1998 13:57:55
Regine Rosewich
Aurum Ges.F.Untern.Ber.U.Integration Mbh
Freiamt, Germany
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00095634
Message ID:
00095732
Views:
20
>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
********************************
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform