Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 2 of 2 total
Thread Form's default button
Mon, Feb 12 2018 3:13 PMPermanent Link

Mario Enríquez

Open Consult

Hi folks, it there a way to set a form' s default button? Just like the Default property on VCL buttons?

In the login form on my application and I want the user to be able to just press enter after typing the password and get validated.

Should I be playing with the Keypress event on the form?


Regards,
Mane
Mon, Feb 12 2018 4:08 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Mario,

<< Hi folks, it there a way to set a form' s default button? Just like the Default property on VCL buttons? >>

What you want is the TDialogButton control:

https://www.elevatesoft.com/manual?action=viewcomp&id=ewb2&comp=TDialogButton

Tim Young
Elevate Software
www.elevatesoft.com
Image