Merchants Posted February 22, 2010 Posted February 22, 2010 (edited) is there a way to press enter and run the case like this i tink: TesT() Func TesT() Local $GUI, $msg, $Button $GUI = GUICreate("TesT", 495, 250) $Button = GuiCtrlCreateButton("Ok", 10, 10, 27, 20) While 1 $msg = GUIGetMsg($GUI) Select Case $msg = $Button or {Enter} MsgBox(64,"TesT", "You pressed Ok") EndSelect WEnd EndFunc Edited February 22, 2010 by Merchants
MHz Posted February 22, 2010 Posted February 22, 2010 Sure, have a look at styles or exstyles for the button creation function. IIRC, it has one for default button.
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