Click to See Complete Forum and Search --> : How to use keyboard "Enter" rather than use mouse to click


ttl7
June 15th, 2001, 01:50 PM
In the dialog box, I have a function for "Ok" to run a specific function, but how to code the program, so that i can use keyboard enter rather than click the "OK" button.

Thank you very much if any one can teach me how to do it.

Regards,
ttl7

kebinlu
June 19th, 2001, 05:34 AM
Just set this button to default if this button has focus.

if you want to do it even when this focus has not focus, you can override onchar() function and define you enter_key. All will be OK.