Information générale
Titre:
KEYBOARD / Keypress
(I send this to double places Sorry, but there is two separated things.)
Problem with WSH (and keypressed event in VFP)
ALL VFP versions including VFP7
--------------------------
1) oScript = creat("WSCript.Shell")
(now activate another VFP application)
(Then in first VFP application run next sentence)
oScript.appactivate(Another VFP application)
oScript.sendkeys({LEFT})
-- PROBLEM
{LEFT}, {UP}, {DEL} etc. to another VFP application does't do anything (BUT TO word, Calculator etc. it's working).
-----------------------------
2) Create form, add some txtBoxes
Thisform.Keypreview = .T.
--
Next event is form's keypress event
--
LPARAMETERS nKeyCode, nShiftAltCtrl
--
everything is OK but if next is form's keypress event:
--
LPARAMETERS nKeyCode, nShiftAltCtrl
DODEFAULT(nKeyCode, nShiftAltCtrl
)
-- PROBLEM
Try to press left or right cursor in middle of some txtbox. Cursor doesn't move to next letter but to next field BUG BUG !!
------------
I'm trying to do touch screen keyboard with VFP (OK it's working´if ForgroundWindow is NOT VFP application but if it is NO WAY) = BUG , BUG
Is there a work around (OCX or what ever)?
Arto
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement