Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HowTo force Richtextctrl to react on keyboard '{CTRL+V}'
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00850053
Message ID:
00850312
Vues:
31
>Good! So RTF has its own window, therefore oShell did not work; and probably keyboard ... also require activating rtf window first.
>
>Would be good to understand how to activate RTF window: positioning mouse manually over RTF works, but when I programmatically put mouse pointer over RTF and try mouse click, it does not.

Hi Yuri,

Yes, all ActiveX controls run in there own windows. You can use SetFocus method of there olecontainer to activate particular ActiveX. For example,
Thisform.oRtf.SetFocus()
oShell = Createobject("wscript.shell")
oShell.SendKeys([^V])
will paste clipboard into RTF control the same as WM_PASTE message.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform