Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Ken Blum
  Where is Ken Blum?
 Chicago
 Illinois - United States
 Ken Blum
 To: Tõnis Pihlakas
  Where is Tõnis Pihlakas?
 Tallinn
 Estonia
 Tõnis Pihlakas
 Tags
Subject: RE: TimeTextBox + Grid
Thread ID: 33936 Message ID: 33984 # Views: 2 # Ratings: 0
Version: Visual FoxPro 8 Category: Grids
Date: Friday, December 05, 2003 4:40:56 PM         
   


> yup, thats correct... and it works like a charm as long as I don't bind this control to a cursor. When bound, the access method isn't called when FoxPro writes the value of the textbox into the cursor (if it actually works this way). It's just as if foxpro would take the value straight from the control's value property, not the access mehtod...
>
>
> A Quick Brown Fox Jumps Over The Lazy Dog

What I've done in this situation is create a container class that has 2 text boxes, one that is visible that the user sees and enters (TextEntry) without a ControlSource, and another that is not visible that is bound to the data source (DateValue). The TextEntry.Validate method sets the value of the DateValue.Value object. The DateValue object Refresh method refreshes the value in the TextEntry value.

Here is a class that allows input of temperatures in either Farenheit or Celcius to illustrate this class design. It's a little more complex than what you will do but you should get the idea...

_400zoa4g.zip

KTB

ENTIRE THREAD

TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/5/2003 8:59:28 AM
RE: TimeTextBox + Grid Posted by Lucy Alice Pilanga @ 12/5/2003 9:35:59 AM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/5/2003 9:59:31 AM
RE: TimeTextBox + Grid Posted by Lucy Alice Pilanga @ 12/5/2003 10:16:49 AM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/5/2003 10:31:37 AM
RE: TimeTextBox + Grid Posted by Ken Blum @ 12/5/2003 4:40:56 PM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/8/2003 4:38:10 PM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/8/2003 6:20:29 PM
RE: TimeTextBox + Grid Posted by Ken Blum @ 12/8/2003 8:36:04 PM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/9/2003 1:41:52 PM
RE: TimeTextBox + Grid Posted by Ken Blum @ 12/9/2003 4:27:04 PM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/10/2003 8:17:23 AM
RE: TimeTextBox + Grid Posted by Tõnis Pihlakas @ 12/11/2003 9:26:04 AM
RE: TimeTextBox + Grid Posted by Ken Blum @ 12/11/2003 5:51:30 PM