Sign in to follow this  
Followers 0
fschreiner

Newbie GUI Question

3 posts in this topic

Hi,

I'm a autoit newbie and I have just build my first

GUI. Now I've got a short question.

There are 3 Input fields and 2 Buttons (OK and Cancel)

in my GUI. At the startup the focus is set to the first

input field. Up to now, everythig's all right.

Now I want that the Return key has the same

function as a click on the OK Button. At the moment

nothing happens when pressing return if the focus

is on an input field.

Many thanks for your answers!!!

Share this post


Link to post
Share on other sites



Hi,

Perhaps you want to set a default button by using the button style $BS_DEFPUSHBUTTON.

Creates a push button with a heavy black border. If the button is in a dialog box, the user can select the button by pressing the ENTER key, even when the button does not have the input focus. This style is useful for enabling the user to quickly select the most likely option, or default.

:whistle:

Share this post


Link to post
Share on other sites

You know, i tried that too, and that didnt work for my script.


---"Educate the Mind, Make Savage the Body" -Mao Tse Tung

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0