Subject RE: [IBO] IB_DateTimePicker, IB_JPEGImage .. need some first aid?
Author Jason Wharton
For a very long time I have made it clear that the TIB_DateTimePicker
control is flawed and difficult to work with. If you have a problem case
with it and want a fix in some way shape or form I will give it
consideration. Most people just switch over to use the TIB_Date control and
leave it at that so I don't put high priority on any issues with
TIB_DateTimePicker.

Send me a sample app with the problem isolated and I will put it in my list
of items to work on.

Jason Wharton

> -----Original Message-----
> From: IBObjects@yahoogroups.com [mailto:IBObjects@yahoogroups.com]On
> Behalf Of Adrian Wreyford
> Sent: Wednesday, December 20, 2006 12:01 PM
> To: ibobjects@yahoogroups.com
> Subject: [IBO] IB_DateTimePicker, IB_JPEGImage .. need some first aid?
>
>
> Hi Jason
>
> When working on a yearplanner for a new software release, I
> inadvertently used IB_DateTimePicker, instead of IB_Date.
>
> When trying to insert a record, with a date field accessed by
> IB_DateTimePicker, I get an error that the specific date field is a
> required field, even though I have entered a date for the
> date field. I
> have ShowCheckbox := False;
>
> Then suddenly I remembered having a similar problem many
> years ago, so I
> did a search on IB_DateTimePicker on the list.
>
> In 2003 July James reports the same error.
>
> Paul Vinkenoog eventually replies after many tries by others with the
> following solution:
>
> "There is indeed a bug in IB_DateTimePicker that manifests itself when
> the dataset is in dssInsert state, i.e. when you are working on a
> newly inserted record. Here's a workaround:
>
> - create an OnChange handler for the IB_DateTimePicker with this body:
>
> if ( MyDataset->State == dssInsert )
> ((TIB_DateTimePicker *) Sender)->Checked = true;
>
> If you use Delphi, I think it's:
>
> if MyDataset.State = dssInsert
> then (Sender as TIB_DateTimePicker).Checked := true;
>
>
> Note: You can still set ShowCheckbox to whatever you prefer.
>
>
> Maybe I'll try and fix this bug if I have a little time left this
> week.
>
>
> HTH,
> Paul Vinkenoog"
>
> We are almost entering 2007.
> It still hasn't been fixed!
>
> I've paid many US$ for upgrades over the years, and will
> continue to do
> so as this is a great product.
> But perhaps this one should be included in your list of bugs to fix
> before your next stable release.
>
> I would like your opinion on this one, as this is a component I prefer
> to the Ib_Date, due to the looks, more than anything else.
>
> I'm sure this is the same situation as IB_JpegImage, not a TRUE J
> Wharton component, thus not vigorously supported, but I feel
> that it is
> on your component list, thus they remain components that should be
> supported or REMOVED!
>
> Thanks :-)
>
> Adrian Wreyford