Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Travis Pick
  Where is Travis Pick?
 Waterloo
 Canada
 Travis Pick
 Tags
Subject: Cursor inside a text box
Thread ID: 22322 Message ID: 22322 # Views: 8 # Ratings: 0
Version: Visual FoxPro 7 Category: Classes and Objects
Date: Tuesday, April 15, 2003 7:16:43 PM         
   


I have a text box that must have a numeric input. To make sure of this I have bound it to a memory variable, the variable is defined as a number. This works nicely except for one thing. When the user clicks into the text box, it no long automatically puts the cursor at the start of the textbox.

To fix this, i would issue the following code in the got focus event

keyboard '{HOME}'


But if the user clicks into the very first spot of the textbox the keypress of "Home" will move the cursor to the next object in the tab order.

Does anyone have a way to move the cursor to the front, or a better way to ensure that the text box is a number (besides the input mask).


Thanks

Travis

COMPLETE THREAD

Cursor inside a text box Posted by Travis Pick @ 4/15/2003 7:16:43 PM
RE: Cursor inside a text box Posted by Eric den Doop @ 4/15/2003 7:22:08 PM