Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Simulate Keystrokes
Tue, Sep 18 2018 4:50 AMPermanent Link

Michael Dreher

Is it possible to simulate a keystroke for a TEdit control?
Something like

var
 edit1 : TEdit;

SendMessage(VK_RIGHT, edit1);


Thanks.
Michael Dreher
Wed, Sep 19 2018 12:55 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Michael,

<< Is it possible to simulate a keystroke for a TEdit control? >>

Yes, but there's some missing bits in the WebDOM unit and the TInputControl.InputElement property needs to be surfaced as a public property in order to allow the dispatching to occur.

I will wrap this up in a standard TControl/TInputControl method so that you can pump UI events into controls.

Tim Young
Elevate Software
www.elevatesoft.com
Image