NxDatePicker and Beginning of the Week
#1
Posted 16 June 2007 - 06:50 PM
is it possible to start the week at monday and not at sunday?
Thank you for answers.
Best Regards
Lukas
#2
Posted 16 June 2007 - 07:20 PM
I have add this in my release, it is called StartDay property. If you want, I may send you latest release on E-mail with this option on.
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#3
Posted 16 June 2007 - 08:40 PM
thank you for your supply, but I think it will work till the next release
Is "Monday" the default value for the property StartDay?
Nowadays in nearly all countries monday is the beginning of the week, isn't it?
Best Regards
Lukas
#4
Posted 16 June 2007 - 08:45 PM
Sunday is still default value, because then this will be changed in existing applications too.
I am thinking about one non visual NxLocal component to handle all this settings globaly.
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#5
Posted 20 June 2007 - 11:16 PM
I looked for the month names in your sourcecode and think, it could be better when you use the local names:
Your code:
begin
Result := 'S';
if Assigned(FDayNames) and InRange(DayInWeek, 1, 7)
and (FDayNames.Count >= 7) then Result := FDayNames[DayInWeek - 1][1] else
case DayInWeek of
1: Result := 'S';
2: Result := 'M';
3: Result := 'D';
4: Result := 'M';
5: Result := 'D';
6: Result := 'F';
7: Result := 'S';
end;
end;
Possible method:
begin
Result := 'S';
if Assigned(FDayNames) and InRange(DayInWeek, 1, 7)
and (FDayNames.Count >= 7) then Result := FDayNames[DayInWeek - 1][1] else
Result := LongDayNames[DayInWeek][1];
end;
And there exists a second method named "LongMonthNames" for the months.
Think about it and tell us your decision
Best Regars
Lukas
#6
Posted 20 June 2007 - 11:29 PM
I was think about this too, and I will include it. Thank you.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#7
Posted 20 June 2007 - 11:33 PM
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#8
Posted 20 June 2007 - 11:47 PM
and (FDayNames.Count >= 7) then Result := FDayNames[DayInWeek - 1][1] else
case FStartDay of
dwSunday: Result := LongDayNames[DayInWeek][1];
dwMonday: if DayInWeek = 7 then Result := LongDayNames[1][1]
else Result := LongDayNames[DayInWeek + 1][1];
end;
If someone is interested for new release (developement version), please contact me.
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#9
Posted 21 June 2007 - 12:31 PM
I think the first day of the week is also obtainable thru the locale info.
#10
Posted 21 June 2007 - 12:35 PM
This will be great, but I couldn't find it
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#12
Posted 22 June 2007 - 10:08 PM
I have read this thread. Thank you.
But, I have thinking that is maybe better to have a property as I have now, or add a one new item in property list (dwSunday, dwMonday, dwAutomatic). When it is set dwAutomatic, it will read from GetLocaleInfo.
Please contact me via e-mail and I will send you developement version. Please note that you will receive it tomorow since I need to close some open code gaps first.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#13
Posted 22 June 2007 - 10:26 PM
have sent you an email under registered account
brgds
coasting
#14
Posted 23 June 2007 - 12:32 PM
I have send it to you. Please note that maybe some open gaps are still exist.
Please tell me if spam filter have block it.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#15
Posted 23 June 2007 - 06:50 PM
safely arrived here and working well.
Noted that you are giong to put all locale setting in separate component TNXLocalizer. Suppose that this will in future hold all loacale settings for Berg Components?
brgds
coasting
#16
Posted 23 June 2007 - 06:58 PM
Yes, but it still in developement, I don't recommend using it yet but any suggestion for this component is welcome.
Best regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
#17
Posted 27 June 2007 - 12:05 PM
From my madExcept plugins (see the two constants, both may be handy for the popup calendar):
UpdateLocaleStatus(fIFirstDayOfWeek, fLocale, LOCALE_IFIRSTDAYOFWEEK);
UpdateLocaleStatus(fIFirstWeekOfYear, fLocale, LOCALE_IFIRSTWEEKOFYEAR);
#18
Posted 27 June 2007 - 12:08 PM
I have add it already with LocaleInfo, if user set StartDay to dwAutomatic. If you want, I may send you a new release.
regards
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











