Jump to content

Newbie GUI Question


 Share

Recommended Posts

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!!!

Link to comment
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:
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...