Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simulating RightClick in RTF Box control
Message
De
30/08/2006 18:10:27
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Simulating RightClick in RTF Box control
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01150005
Message ID:
01150005
Vues:
99
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.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform