Page 1 of 1

pressing Enter

PostPosted: 29 Jan 2015 17:29
by sesam
Hello,

in my Application is a password-edit and a login-button.
What I want to achieve is: to start the login procedure
after pressing the enter key in the password-edit and showing the lockindicator...

How can I do this?
Thanks,
Andreas

Re: pressing Enter

PostPosted: 29 Jan 2015 17:40
by Alexander Bulei
Hi sesam,

Use keypress or keyup events and invoke the click inside.

Best Regards.

Re: pressing Enter

PostPosted: 30 Jan 2015 14:13
by sesam
Sorry, but I don't get it...
What du you mean by the click inside?

procedure TIWFormStart.EditPwJQEventsKeyPress(Sender: TObject;
AParams: TStringList);
begin
if AParams.Values['key'] = '13' then
???What???
end;

Thanks,
Andreas

Re: pressing Enter

PostPosted: 10 Feb 2015 16:23
by sesam
Hi,
I tried (almost) everything but it won't work...
Please help,
thanks Andreas

Re: pressing Enter

PostPosted: 10 Feb 2015 16:57
by Alexander Bulei
Hi sesam,

Attached simple project.

Best way is isolate the login code and then call the method (like in demo).

But you can trigger the click (commented line).

Best Regards.

Re: pressing Enter

PostPosted: 10 Feb 2015 17:29
by sesam
Thanks a lot!!!

Best regards,
Andreas