Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulating RightClick in RTF Box control
Message
 
 
To
30/08/2006 18:10:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01150005
Message ID:
01150015
Views:
34
I get correct values in MouseUP event.

>RTF Box has no rightclick method. The MSDN article on .click says "To distinguish between the left, right, and middle mouse buttons, use the MouseDown and MouseUp events". So I tried to do it in the .MouseUp - and it says the parameters are _MouseUp([index As Integer,]button As Integer, shift As Integer, x As Single, y As Single)... where index is there if the control is a member of a control array. So far so good - adding the code to my RTF class, VFP dutifully filled in the "Lparameters Button, Shift, x, Y" line. So far so good.
>
>The problem is that no parameters get passed, none at all. All four are .f.
>
>Any ideas?
>
>Update: while it doesn't work as specified, I managed to have it pass parameters to a bindevent()ed method in the form. Go figure.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform