DateTimeCtrl refactored... [message #12440] |
Wed, 31 October 2007 14:09 |
|
DateTimeCtrl is gone It's now replaced by DropDate and DropTime. DropDate is the old DateTimeCtrl, DropTime is a calendar + clock. Clock is fully mouse controlled. Additionaly time can be adjusted by top buttons and by left and right slider.
There is no drop control to drop clock only but it can by easily done if someone needs it. It will be provided to upp later if time will be separated from date. Top buttons of calendar were rearranged. I think it's more readable now for what they are.
Here is how it looks like:
Enjoy and report bugs!
[Updated on: Wed, 31 October 2007 14:11] Report message to a moderator
|
|
|
|
|
Re: DateTimeCtrl refactored... [message #12450 is a reply to message #12440] |
Thu, 01 November 2007 19:22 |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |
|
|
Great control for date/time!
Actually I`d like to suggest slightly different position of top labels in the top of time widget. The cause of such correction is purely an ergonomical and design matter.
I think it`s obvious that people used to see time in AA:BB format. So if you want design to be obvious, you should make top label a <<AA>>:<<BB>> format (<<,>> are arrows).
Also, I think left alignment of top label will make resulting time more clearly recognizable.
Next suggestion is to swap month and date labels (with optional adding date label - for those who is more used to line changers), for it will be more logical (and more clearly recognizable) sequence - year>month>date>time.
The last suggestion is to make seconds arrow of analog clock - optional, if it`s not already.
[Updated on: Thu, 01 November 2007 19:28] Report message to a moderator
|
|
|
Re: DateTimeCtrl refactored... [message #12453 is a reply to message #12450] |
Thu, 01 November 2007 22:44 |
|
Mindtraveller wrote on Thu, 01 November 2007 14:22 | Great control for date/time!
|
Thanks!
Quote: |
Actually I`d like to suggest slightly different position of top labels in the top of time widget. The cause of such correction is purely an ergonomical and design matter.
I think it`s obvious that people used to see time in AA:BB format. So if you want design to be obvious, you should make top label a <<AA>>:<<BB>> format (<<,>> are arrows).
Also, I think left alignment of top label will make resulting time more clearly recognizable.
|
Agree.
Quote: |
Next suggestion is to swap month and date labels (with optional adding date label - for those who is more used to line changers), for it will be more logical (and more clearly recognizable) sequence - year>month>date>time.
|
sounds reasonable. I'll check it
Quote: |
The last suggestion is to make seconds arrow of analog clock - optional, if it`s not already.
|
It's not there, but it will (I need it too )
|
|
|
Re: DateTimeCtrl refactored... [message #12458 is a reply to message #12453] |
Sat, 03 November 2007 13:09 |
|
Added:
OneButton(bool b) - make "one-line" month-year button
Colon(bool b) - if true colon is displayed in clock header
SwapMonthYear(bool b) - if true month and year buttons are swaped (in one button mode displayed text is also swaped)
Seconds(bool b) - if false second arrow is not displayed
Changed:
Clock buttons are now centered.
|
|
|
|
|
Re: DateTimeCtrl refactored... [message #12477 is a reply to message #12440] |
Mon, 05 November 2007 10:29 |
Tom1
Messages: 1242 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
Great stuff! Is it possible to have the date on the lower edge of the calendar -- and the main control as well -- to be displayed as yyyy-mm-dd, instead of the American mm/dd/yyyy? (The American way is very confusing in my country, since we normally use dd.mm.yyyy.)
Having a way to set the separator character and field-ordering for this control would give most convenience for users.
--
I would really like to get access to this new date/time control ASAP since I'm currently working on an application needing this sort of thing. Where can I download it? I can't seem to find any later version of Upp than 710-dev1.
// Tom
|
|
|
|
Re: DateTimeCtrl refactored... [message #12480 is a reply to message #12440] |
Mon, 05 November 2007 10:59 |
Tom1
Messages: 1242 Registered: March 2007
|
Senior Contributor |
|
|
Thanks for the great news! And I mean both the new dev version availability and the automatic system locale detection. (The old DateTimeCtrl showed US style dates even on Finnish locale, so this is a major improvement.)
Are there also plans to release a .deb package for Ubuntu or a more generic src package? I'm attempting to develop my software on both Windows and Linux (and FreeBSD) in sync to resolve any platform differences along the way.
Thanks and regards,
Tom
|
|
|
Re: DateTimeCtrl refactored... [message #12547 is a reply to message #12440] |
Thu, 08 November 2007 15:00 |
Tom1
Messages: 1242 Registered: March 2007
|
Senior Contributor |
|
|
Hi Uno,
I sure would like to get access to the current development version of Upp. Would it be possible to have the SVN on sourceforge updated to the current state of development, if 711-dev1 is not ready to be published yet?
// Tom
|
|
|
|
|
Re: DateTimeCtrl refactored... [message #12559 is a reply to message #12550] |
Fri, 09 November 2007 10:01 |
Tom1
Messages: 1242 Registered: March 2007
|
Senior Contributor |
|
|
Hi Uno,
Thanks for releasing the latest dev! It really is great.
I have noticed two issues on DropTime control -- eventhough it's really beautiful and easy for users.
1. DropTime uses 100% CPU when open. (At least on WinVista.)
2. It shows MM/DD/YYYY (US) format date even on Finnish locale, whereas it should be DD.MM.YYYY.
And, finally a wish you obviously do not need to fulfill: How about formatting the "Title bar" of the dropped control as follows: <YYYY> <MM> <DD> <hh> <mm> <ss>
(The < and > represent the adjustment arrow buttons.)
// Tom
|
|
|
Re: DateTimeCtrl refactored... [message #12565 is a reply to message #12559] |
Fri, 09 November 2007 11:23 |
|
Quote: | I have noticed two issues on DropTime control -- eventhough it's really beautiful and easy for users.
1. DropTime uses 100% CPU when open. (At least on WinVista.)
2. It shows MM/DD/YYYY (US) format date even on Finnish locale, whereas it should be DD.MM.YYYY.
|
That's really strange. Do you use SetLanguage in your app? If not the default locale is used.
Quote: |
And, finally a wish you obviously do not need to fulfill: How about formatting the "Title bar" of the dropped control as follows: <YYYY> <MM> <DD> <hh> <mm> <ss>
(The < and > represent the adjustment arrow buttons.)
|
Well, it can be done. Not a big problem. However now you can use SwapYearMonth so you'll get:
<YYYY> <MM> <hh> <mm>
instead of
<MM> <YYYY> <hh> <mm>
PS: Do you mean MM as number or name?
I know there is no DD but day should be picked from "calendar body" (I followed populars calendars).
Anyway, I'll try to add all your proposals (it's only few lines of code). Let the drop date/time be flexible
|
|
|
|
|
Re: DateTimeCtrl refactored... [message #12569 is a reply to message #12565] |
Fri, 09 November 2007 11:41 |
Tom1
Messages: 1242 Registered: March 2007
|
Senior Contributor |
|
|
I do not use SetLanguage. Should I? In my Windows installation the active system locale is Finnish. Or should I separately define locale for Upp somehow?
As for <MM> format, I do not have a strong opinion about this, but for me a number would be enough. It may be easier for people who do not speak english natively, but still need to access this widget on a system with English interface language.
Actually, I used already the SwapYearMonth..
Thanks,
Tom
|
|
|
|