Subject [IBO] Re: IB_Edit with date field shows extra space before year
Author Marco Menardi <mmenaz@lycosmail.com>
--- In IBObjects@yahoogroups.com, Raymond Kennington <progsol@c...> wrote:
> "Marco Menardi " wrote:
> >
> > It's not an answer to your question, but have you tried the IB_Date
> > component?
>
> Jason pointed out to me that it is not a fully-functional component
and is not
> supported.

No, I'm talking about the very well supported (also by me, since I
have an extensive use of it) IB_Date, not datetimepicker (never used)

>
> Also, I want to have an ellipsis button to bring up my own date and
time picker.

There is a button to bring up a very nice calendar, but nothing for
time, nothing you can customize, I suppose. But maybe intercepting the
"OnButtonClick" can do the trick.

>
> > a) it should (could) work
> > b) if something related to date handling has to be fixed, I would
> > prefer fixing it in a specialized component first
>
> It doesn't do what I need.
>
> The TIB_Edit component is more fundamental than the datetimepicker
and works
> fine with 4-digit years.

The problem is that date format is a nightmare. Since I very often use
2 digit year, I've tested IB_Date and it works even with a 4 year
display format (edit yy, display yyyy). The problems can be from the
only one digit day you told you need 'd/mm/yy'. Hope you can use
dd/mm/yy instead, since it's what IB_Date supports.

>
> > c) TDBDate (standard VCL) I think is even worse ;)
> > final: what edit mask did you define?
>
> I have not specified an edit-mask. Therefore it uses the default
edit-mask. It
> is this automatically-defined edit-mask that is not correct when
regional
> setting is for a 2-digit year.

As a tip, I tell you that I have database with domains and define
field attributes using IB_Connection, feDomains. This is a really
fabolous time saving / error free / common behaviour "plus" of IBO.
regards
Marco Menardi

>
> >
> > --- In IBObjects@yahoogroups.com, Raymond Kennington
<progsol@c...> wrote:
> > > The short year format is d/mm/yy.
> > >
> > > The IB_Edit control is connected to a date field.
> > >
> > > When the control is active and the date is 6/12/03
> > > it displays as 6/12/ 03 and it is not easy to change
> > > the year value.
> > >
> > > How can I change this behaviour?
>
> --
> Raymond Kennington
> Programming Solutions
> W2W Team B