Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulating RightClick in RTF Box control
Message
From
30/08/2006 18:10:27
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Simulating RightClick in RTF Box control
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01150005
Message ID:
01150005
Views:
98
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.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Next
Reply
Map
View

Click here to load this message in the networking platform