2010-08-24 09:30 UTC
Hi, there.
I wonder why the button does not have "Return pressed " Event.
A form have some buttons and other controls with tab stop true property.
When I press enter key to step one control to another , on the button control pressed enter key,
it goes to form's "OnCancelClose" Event.
The "OnCancelClose" Event has just reason arg, normaly returns "0" value and the form does not close.
But I want some special button pressed enter key to close form.
Hope someone show me the way.
Thanks.
I wonder why the button does not have "Return pressed " Event.
A form have some buttons and other controls with tab stop true property.
When I press enter key to step one control to another , on the button control pressed enter key,
it goes to form's "OnCancelClose" Event.
The "OnCancelClose" Event has just reason arg, normaly returns "0" value and the form does not close.
But I want some special button pressed enter key to close form.
Hope someone show me the way.
Thanks.