Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - how to show weeknumber
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

how to show weeknumber

 Post Reply Post Reply
Author
Message
hinnack View Drop Down
Groupie
Groupie


Joined: 01 September 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hinnack Quote  Post ReplyReply Direct Link To This Post Topic: how to show weeknumber
    Posted: 28 October 2009 at 2:46am
Hi,

how can I show the weeknumber / calendarweek in dayview / weekview?

-- Hinnack
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 29 October 2009 at 1:27pm

use C-style setting - like this

CalendarControl.FullDateMode = True
CalendarControl.DayHeaderFormat = "week=%W %A, %B %d"
Back to Top
hinnack View Drop Down
Groupie
Groupie


Joined: 01 September 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hinnack Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 3:29am
works half the way: wrong language! I do get english weekdaynames and monthnames othough the rest is german...

How to show the weeknumber in weekview?

-- Hinnack
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 7:44am
Check this http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx and this http://msdn.microsoft.com/en-us/library/x99tb11d(VS.80).aspx
No WeekView (2-column mode) supported - only multi-columns mode
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 30 October 2009 at 8:24am
e.g. ::setlocale(LC_ALL, _T("German"));
Back to Top
hinnack View Drop Down
Groupie
Groupie


Joined: 01 September 2009
Status: Offline
Points: 18
Post Options Post Options   Thanks (0) Thanks(0)   Quote hinnack Quote  Post ReplyReply Direct Link To This Post Posted: 01 November 2009 at 8:02am
thanks for the info!
But why is everywhere in your component the correct language shown (for e.g. weekdays) except for using this?
CalendarControl.FullDateMode = True
CalendarControl.DayHeaderFormat = "week=%W %A, %B %d"

-- Hinnack
Back to Top
mdoubson View Drop Down
Senior Member
Senior Member
Avatar

Joined: 17 November 2008
Status: Offline
Points: 1705
Post Options Post Options   Thanks (0) Thanks(0)   Quote mdoubson Quote  Post ReplyReply Direct Link To This Post Posted: 04 November 2009 at 1:12pm
Please try update https://forum.codejock.com/uploads/BetaOCX/CalendarBeta13-2.rar 
where Week Number in header matched to DatePicker Week Number
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.141 seconds.