Sign in to follow this  
Followers 0
AustrianOak

input data and click enter

4 posts in this topic

i have an input and a button. i input data in the input and i click the button and the button displays it in a msgbox. is there anyway without setting hotkeys to just automatically click enter and it will display the data in the msgbox instead of having to click the button?

Share this post


Link to post
Share on other sites



so i assume ill have to use a hotkey.

Share this post


Link to post
Share on other sites

What about set state of this button to $BS_DEFPUSHBUTTON. Citation from help:

"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."


[right]Software is like sex - it's better when it's free. (Linus Torvalds)[/right]

Share this post


Link to post
Share on other sites

i apologize, i have changed my code and im actually using a picture file they click on instead of a button. i get the same output and effect but it is a picture control

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