Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Change the header of  a day
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Change the header of a day

 Post Reply Post Reply
Author
Message
Marc View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marc Quote  Post ReplyReply Direct Link To This Post Topic: Change the header of a day
    Posted: 12 March 2009 at 10:10am
Hello,

how can I change the text of the header for one day? For example the word Easter has to appear for the 2009/04/13.

Regards
Marc

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: 18 March 2009 at 11:04pm
Find the topic in Forum about BeforeDrawThemeObject - you will find example how to customize specific parts include headers
Back to Top
Marc View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marc Quote  Post ReplyReply Direct Link To This Post Posted: 20 March 2009 at 5:02am
Thanks for this information. But I find only, how to change the colour and font, not to change the text. Now I indicate the holiday as "all-day-event".

Regards
Marc

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: 20 March 2009 at 10:46am
Private Sub CalendarControl_BeforeDrawThemeObject(ByVal eObjType As XtremeCalendarControl.CalendarBeforeDrawThemeObject, ByVal Params As Variant)

Dim pEvent As CalendarEvent

If eObjType = xtpCalendarBeforeDraw_DayViewEvent Then
Set pEvent = Params.Event
YOU CAN PUT SOME CONDITION HERE AND MODIFY SOME PROPERIES e.g. Subject, Location,....
     end if

end if

End Sub
Back to Top
Marc View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marc Quote  Post ReplyReply Direct Link To This Post Posted: 23 March 2009 at 5:38am
Thank you, but with this code I can only change the properties for the item, not the header.

First I change the format of the header with

axKalender.MonthView.DayHeaderFormatLong = "MM.dd.yyyy"
...

Then I will change the header only for holidays.


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: 26 March 2009 at 3:45pm
I think that you can easy reach your expectation if you will just add two single all-day events - Ostersonntag and Ostermontag with the proper color flag for 12 and 12 of April 2009 - so you already have practical tool
Back to Top
Marc View Drop Down
Newbie
Newbie


Joined: 12 March 2009
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote Marc Quote  Post ReplyReply Direct Link To This Post Posted: 27 March 2009 at 3:25am
I will make it in such a way.

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.188 seconds.