Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Custom WorkWeek View column text
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Custom WorkWeek View column text

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


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Topic: Custom WorkWeek View column text
    Posted: 25 July 2007 at 5:21am
Hi,
 
Doing the following

//Display the Work week view force all days as working day

//Then the display will one column by day and each hour for each day

axCalendarControl1.Options.WorkWeekMask = XtremeCalendarControl.CalendarWeekDay.xtpCalendarDayAllWeek | XtremeCalendarControl.CalendarWeekDay.xtpCalendarDaySaSu ;

axCalendarControl1.ViewType = XtremeCalendarControl.CalendarViewType.xtpCalendarWorkWeekView;

axCalendarControl1.DayView.DayHeaderFormatLong = "dddd";

axCalendarControl1.DayView.DayHeaderFormatMiddle = "dddd";

axCalendarControl1.DayView.DayHeaderFormatShort = "dddd";

axCalendarControl1.DayView.DayHeaderFormatShortest = "dddd";

axCalendarControl1.Populate();

axCalendarControl1.DayView.EnableHScroll(false);

axCalendarControl1.DayView.ScrollToWorkDayBegin();

 
I have the attached bitmap as result.
 
 
What I would like is to remove the day number and have only Monday, Tuesday and so on.
 
Can anyone tell me how it is possible?
 
Thanks and Best regards!
Back to Top
cjprb View Drop Down
Newbie
Newbie


Joined: 08 June 2007
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote cjprb Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2007 at 10:08am
I guess you are using a CalendarThemeOffice2007.
 
In the setup for the calender, you ask to have events for the left part of the dateheader for dayviews.
 
AskItemTextFlags.SetFlag(xtpCalendarItemText_DayViewDayHeaderLeft)
 
In the event GetItemText write the following code
 
If itemparams.Item = xtpCalendarItemText_DayViewDayHeaderLeft then itemparams.text = ""
 
 
Regards
 
Claus Pedersen
Back to Top
simus View Drop Down
Groupie
Groupie


Joined: 08 July 2005
Status: Offline
Points: 43
Post Options Post Options   Thanks (0) Thanks(0)   Quote simus Quote  Post ReplyReply Direct Link To This Post Posted: 25 July 2007 at 10:19am
Thanks
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.125 seconds.