AustrianOak Posted June 4, 2008 Posted June 4, 2008 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?
Bench Posted June 4, 2008 Posted June 4, 2008 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]
AustrianOak Posted June 4, 2008 Author Posted June 4, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now