Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Command Buttons
Message
From
19/11/2001 04:26:02
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
18/11/2001 23:50:21
Jimi Lee
Pop Electronic Products Ltd.
Hong Kong, Hong Kong
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00583321
Message ID:
00583346
Views:
24
>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') :
* Commandbuttons click
if !compobj(sys(1270),this)
 this.setfocus
endif
* Other click code
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform