>hi all,
>
>other than on key label, keypress events, are there any other way to config a form, such that when user press a key (e.g. Esc), a button of the form will act like been clicked?
>
>when i use on key label, only the code in the button's click event is executed, but I also want to see the animate effect of the button..
>
>Thanks in advance!
>
>Jimi
Jimi,
Prior to VFP7 it's hard to create visual effect, code clicks much faster than a human. You could try this for a fast click on command buttons (set Cancel = .t. for the button that would be clicked upon 'Esc') :
if !compobj(sys(1270),this)
this.setfocus
endif
Cetin