[Moved to dev for my comment] Ed Leafe wrote: > On Nov 23, 2008, at 9:40 AM, Ed Leafe wrote: > >> The original value is supposed to be None, but since text controls >> can only store strings, we are inadvertently converting the original >> None to an empty string. I'll have to review the conversion routines >> in the text controls to see where that is going wrong. > > > I've tried various changes, and each of them breaks some existing > behavior. So what I've done is set the validation to always run if the > initial value is empty. This might take a few more cycles, but this is > an extremely lightweight call.
Not sure if this is needed or desired, however I had a thought: We need to define an initial Value for dTextBox that *isn't* "", None, or anything else common. Some constant like dabo.lib.getRandomUUID() that we can test for, and if that's the value we know we are just being instantiated. Just a thought, which may have its own problems, such as the user seeing the UUID as the value of the control for a short flicker. Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev Searchable Archives: http://leafe.com/archives/search/dabo-dev This message: http://leafe.com/archives/byMID/[EMAIL PROTECTED]
