Subject |
Re: Issue with Template (picture) for an entryfield |
From |
Heinz Kesting <Nobody@Nowhere.com> |
Date |
Sat, 16 Sep 2023 16:55:44 +0200 |
Newsgroups |
dbase.getting-started |
Hi Akshat,
>
> This is probably because the decimal separator in Europe is a comma
This may be part of the problem, but even after changing the decimal
separator from comma to dot, data entry behaves strangely.
Having two dots in the picture (like 99.99.9999), the user can type the
numbers for day, month or year straight away, while the cursor is
automatically jumping into the next section after the second digit.
With only one dot in the picture ("99.9999", even with a dot as the
decimal separator) one has to use the right arrow key (or mouse) to get
to the year section, which is a PITA. Adding the second dot ("99.9999.")
brings it all back to normal, except for looking odd with this dot after
a year.
And the change of the decimal separator will probably cause trouble in
some other parts of the program, as everything else here is set up for
this comma, so I'll better leave this alone.
>
> For date entry I prefer a custom class quick_date.cc or something
> similar. It should be there in Duflp.
>
> The entryfield is of character. The date is validated and stored as date.
>
> quick_date.cc may give you some ideas.
>
Thank you for that tip, I found some very useful ideas in your code, for
instance how to correct one-digit entries for months.
I will implement this funcionality into my form.
Kind regards, Heinz
|
|