Home » U++ Library support » U++ Libraries and TheIDE: i18n, Unicode and Internationalization » EditField and DateFormat problems
EditField and DateFormat problems [message #4491 is a reply to message #4490] |
Sat, 12 August 2006 01:51 |
|
exolon wrote on Fri, 11 August 2006 18:52 | BTW: Specifically, what's happening is that as I type a date (eg: 20/7/2006) into the EditDate gadget, it stays white, indicating a valid date... but as soon as I move focus away from the control by tabbing to another control or clicking away, the date immediately changes from "20/7/2006" to "07/20/2006" and the background colour changes to the "invalid date" colour. Then, I can't close the application without clearing the date field (or entering a neutral date such as 12/12/2006).
|
You need to SetDateFormat to your preferred settings also. Here's how I understand this to work:
When you enter a date, its a 100% raw string. Then it uses DateScan to parse it into Year, Month, and Day internal variables. Then at some later point in time, it is formatted according to DateFormat. DateFormat takes the internal variables and puts it back into a string. This helps to make all dates similar, 1/1/06 would turn into 01/01/2006. It's just good measure. Then its saved.
The problem is your DateFormat is not compatible to your DateScan.
[Updated on: Sat, 12 August 2006 02:02] by Moderator Report message to a moderator
|
|
|
|
|
EditField and DateFormat problems
By: exolon on Fri, 11 August 2006 21:02
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: rbmatt on Fri, 11 August 2006 21:20
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: fudadmin on Fri, 11 August 2006 21:38
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: exolon on Fri, 11 August 2006 21:39
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: rbmatt on Fri, 11 August 2006 21:43
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: mirek on Fri, 11 August 2006 23:29
|
|
|
EditField and DateFormat problems
By: exolon on Sat, 12 August 2006 00:52
|
|
|
EditField and DateFormat problems
By: rbmatt on Sat, 12 August 2006 01:51
|
|
|
Re: EditField topic created, chapters 17 and 18 of GUI tutorial added
By: fudadmin on Fri, 11 August 2006 21:46
|
|
|
Re: EditField and DateFormat problems
By: exolon on Sat, 12 August 2006 02:09
|
|
|
Re: EditField and DateFormat problems
By: mirek on Sat, 12 August 2006 09:13
|
Goto Forum:
Current Time: Sat Apr 27 21:44:27 CEST 2024
Total time taken to generate the page: 0.04621 seconds
|