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:
00850268
Vues:
27
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,
>
>I run some test and it looks like you've to send WM_PASTE message for this to work.
DECLARE integer SendMessage IN WIN32API ;
>		integer hwnd, integer Msg, integer Wparam, integer lParam
>#define WM_PASTE	0x0302
>SendMessage(Thisform.oRTF.Object.Hwnd, WM_PASTE, 0, 0)
>
>
>>Will it somehow differ from oShell = CreateObject("WScript.Shell"), oShell.sendkeys(to window) that I already tryed?
>>Not quite sure how to send it to control (is control.setfocus, and send to window enough?).
>>
>>>Hi Yuri,
>>>
>>>I would try to send 'CTRL+V' directly to control using SendMessage Win API.
>>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform