Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Right handled input for numeric textboxes with inputmask
Message
 
To
14/05/2004 14:29:20
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00903988
Message ID:
00904171
Views:
22
I never tried myself to create such a textbox myself. I don't really like the calculator-style entry in the forms. But it is up to user request - once I used one of UT classes. The original author of the versions we have is Jim Booth, as far as I know. Sure it is possible to play with it and try to add the functionality you describe.

>Hi Nick,
>
>I agree with most of your explanations. However, I was wondering how difficult it would be to add the functionality that I described. I mean, the original author (can't remember his or her name) has allowed the cursor to be positioned precisely with the mouse and/or keyboard. As a typical Windows user, should I not expect that the next number that I type to go exactly where the cursor was? In addition, an individual digit can be selected from the value. Should I not be able to press the Del key to delete that digit and not the entire value?
>
>Sure seems to me like that would be the ultimate "Number textbox" control. It would be the best of both worlds allowing rapid data entry while still being capable of "editing".
>
>Just my opinion.
>
>Mike
>
>
>>Hi Mike,
>>
>>Sure, those are the calculatior-style texboxes and might have their implementation or functional limitations.
>>
>>I guess navigation and selection features here have to do more with supporting the Windows behavior. Even if you cannot insert a digit, you should be able to select the value as a whole, or part of it. Maybe you just need to copy the value and paste to another application.
>>
>>I think the type of textbox class you use depends on the purpose of the application. The calculator style behaviour may be implemented in apps where this exact functionality is required - say, fast data-entry applications where the users does not want to use a mouse much. I guess that's what Metin meant initially - the apps where the user tabs from one control to another and enters the figures. However, implementing only these features seriously limits the usage of the control and confuses the user that just tries to click on the control with the mouse and cannot even get focus on it.
>>
>>We cannot insert digits on the calculator, but we still use it. If someone wants to do the editing of individual digits, then maybe calculator-style textbox is not the right control for the job.
>>
>>>Hi Nick,
>>>
>>>After reading this message I downloaded the class from #9395 and found that items 2 and 3 below don't mean anything (using observations from the sample form that is included with the zip).
>>>
>>>Perhaps you are not the individual to address the following, however, here goes...
>>>
>>>Re. 2) Yes you can position the cursor within the box, but, so what? No matter what I type next, it gets added to the right. How can I insert a digit, say between the left two digits? For example, if the value is 13.4 and I need to change it to 123.4, how can I insert a 2?
>>>
>>>Re. 3) Yes you can select the whole value with the mouse and delete it, but, the whole value can be deleted without selecting anything at all. My problem is, how can I delete an individual digit, say the second from the left without deleting the entire value? For example, if the value is 123.4 and I need to change it to 13.4, how can I delete the 2?
>>>
>>>I suppose one can argue that the control is behaving like a calculator or adding machine, but, for data editing, I can't see anyway to do so except to retype the entire value. Am I missing some property settings to make this control behave like I would like it to?
>>>
>>>
>>>Regards,
>>>
>>>Mike
>>>
>>>>1. You cannot enter such box by clicking on it, only by Tabbing into it.
>>>>2. You cannot position the cursor within the box.
>>>>3. You cannot select the whole value with the mouse and delete it - it only deletes with backspace key from right to left.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform