Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is it possible to disable tab key
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00124536
Message ID:
00124928
Views:
26
>>the form is a simple ordering system. Required: Base PN#(1-3 choices), 2ndary PN#, and then Qty. The BASE PN# choices are represented by a 3 button cmdgroup, the 2ndary PN# and qty by textboxes. On the form there's 5 cmdbuttons, some labels, & 2 textboxes. While textbox1(2ndaryPN#) is the focus, the user is required to enter value. At this point if he clicks on a cmdbutton, it screws up the logic of how the form is supposed to work. After the user hits ENter on textbox1, textbox2 opens for input(qty). Textbox1 opens a dbf and displays the match via a label, textbox2 activates a listbox for running shopping list.simple enuf?
>
>Well, not exactly SIMPLE, Timothy,
>
>1. If you have only 3 choices for Base PN#, then you should be using radio buttons.
>
>2. I'd write a form method disabling and enabling the cmdbuttons. The disable version would be called when either textbox1 or textbox2 is live. Re-enabling is called from the VALID or LOSTFOCUS methods, but ONLY if there were good values in both textboxes.
>
>Barbara
not sure what you mean by a form method. commandgroup seems easier to click than a radio button and I noticed disabling a commandgroup does not make it dim
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform