Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getting the Enter Key to behave like the tab key
Message
From
07/05/2001 01:15:26
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00503461
Message ID:
00504070
Views:
24
>>Hi,
>>
>>In certain forms of ours when a users presses their enter key the curosr behaves as if it where on a on of the tab within the form. How do we make certain that the enter key behaves the same way as the tab key?
>>
>>larry
>
>Make sure you don't set the Default property to .T. for any button. If a button has the property set, it will automatically be selected if the user hits the Enter key.

In cases when that's not feasible, fake tab for each enter in textbox.keypress, i.e.
... case nKeyCode=13
   nodefault
   keyb "{tab}" plain
...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform