Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Stefan Wuebbe
  Where is Stefan Wuebbe?
 Hamburg
 Germany
 Stefan Wuebbe
 To: drewken
  Where is drewken?
 Lake Worth
 United States
 drewken
 Tags
Subject: RE: text box
Thread ID: 233636 Message ID: 233643 # Views: 90 # Ratings: 1
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Saturday, July 04, 2009 7:57:10 PM         
   


> I was wondering what's the best textbox setting to use for numeric entry.
> Also I don't want the cursor to be cycling when I press the left and right cursor
> keys. When I click in the box it should also go to the beginning if empty.
> The regular textbox object in VFP doesn't seem to handle decimal entry very well.
>

You are right, the Vfp textbox behavior is a little unconventional.
As for the numeric input, there are a few classes available, for instance in the UT Downloads section as far as I remember.
One written by Marcia Akins is described here http://www.foxite.com/archives/0000181808.htm

As for the arrow, pos1, end keys behavior, I'm not aware of any public domain classes - you can handle it in yourTextboxClass.KeyPress()

The insertion point issue can be handled in textbox.GotFocus() by setting This.SelStart=0 if MDown() and Empty(Nvl(This.Value,''))



hth
-Stefan



COMPLETE THREAD
text box Posted by drewken @ 7/4/2009 3:44:46 PM
RE: text box Posted by Stefan Wuebbe @ 7/4/2009 7:57:10 PM
RE: text box Posted by tanvir ahmad @ 7/7/2009 2:40:37 PM
RE: text box Posted by Stefan Wuebbe @ 7/8/2009 8:31:38 AM
RE: text box Posted by tanvir ahmad @ 7/8/2009 11:14:38 AM
RE: text box Posted by Stefan Wuebbe @ 7/8/2009 12:01:08 PM
RE: text box Posted by Ammar Hadi @ 7/8/2009 1:29:42 PM
RE: text box Posted by Stefan Wuebbe @ 7/8/2009 4:35:28 PM
RE: text box Posted by Ammar Hadi @ 7/8/2009 5:09:46 PM
RE: text box Posted by Stefan Wuebbe @ 7/8/2009 5:16:21 PM
RE: text box Posted by drewken @ 7/11/2009 6:19:34 AM
RE: text box Posted by Ammar Hadi @ 7/11/2009 9:07:53 AM
RE: text box Posted by Bernard Bout @ 7/12/2009 9:25:47 PM