Home » U++ Library support » CalendarCtrl » switch date format
Re: switch date format [message #24261 is a reply to message #24257] |
Thu, 07 January 2010 20:14 |
sapiency
Messages: 56 Registered: September 2008
|
Member |
|
|
Hi,
I tried AutoFormat(true) and AutoFormat(false), but in both cases I got the wrong result ...
what I did:
- open gui
- click on arrow (calender opens)
- click on current day
- switch output and scan format (output - string is still the same)
- click on arrow and view calender (wrong date)
- switch output and scan format to old style (output - string is still the same)
- click on arrow and view calender (correct date)
I use the following lines to switch:
if( ... )
{
SetDateScan("mdy");
SetLanguage( LNG_( 'E', 'N', 'G', 'B' ) );
SetDateFormat("%2:02d/%3:02d/%1:4d");
}
else
{
SetDateScan("dmy");
SetLanguage( LNG_( 'D', 'E', 'D', 'E' ) );
SetDateFormat("%3:02d/%2:02d/%1:4d");
}
I think this problem could be solved if all Controls derived from Date, receive a Signal that the Strings have been changed.
reinhard
|
|
|
Goto Forum:
Current Time: Fri May 10 22:21:35 CEST 2024
Total time taken to generate the page: 0.02817 seconds
|