Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Numeric Textbox Woes
Message
From
05/07/1998 11:17:30
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00114109
Message ID:
00114330
Views:
23
>>>Mark,
>>>
>>>I've just uploaded a vcx with a numeric textbox class in it. It will take a while before it shows up so I am also sending it to you by email. This class allows numeric entry like a calculator where the numbers come in from the right. The decimal point is placed automatically based on the input mask of the textbox.
>>I've been having the same problem. I put
>>
>>keyboard "{HOME}"+"{SHIFT+END}"
>>
>>in the gotfocus method and it seems to work ok for me
>>HTH
>>//:^)
>
>Once the control has focus the user can still defeat the select by hitting home, end or arrow keys. I am deliberately trying to defeat the select to dummy proof the data entry by my users. I normally would not go thru so much effort, but I have dealt with these people for eight years now. Every heard the phrase, "screw up a free lunch."? Well I have seen just about everything with these users.
Try...

ON KEY LABEL HOME *
ON KEY LABEL END *
keyboard "{END}"+"{SHIFT+HOME}"

in the GOTFOCUS() and

ON KEY LABEL HOME
ON KEY LABEL END

in the VALID().
//:^)

p.s. I changed the
keyboard "{HOME}"+"{SHIFT+END}" to keyboard "{END}"+"{SHIFT+HOME}"
to prevent a problem that I saw with user hitting tab to get to the field
L.A.Long
ProgRes
lalong1@charter.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform