Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Header.basecolor in monthview
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Header.basecolor in monthview

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


Joined: 02 October 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru4 Quote  Post ReplyReply Direct Link To This Post Topic: Header.basecolor in monthview
    Posted: 23 October 2009 at 4:42am
How can I color some header in monthview?
Dayview and weekview I solved with the first part.
When I make same same with the Monthview all the Monthheader will get red.
Problebly the wrong event?


If eObjType = CalendarBeforeDrawThemeObject.xtpCalendarBeforeDraw_DayViewDay Then
   If isSperrtag(DrawParams.Date) Then
      pTheme2007.DayView.Day.Header.BaseColor = vbRed
   End If
ElseIf eObjType = CalendarBeforeDrawThemeObject.xtpCalendarBeforeDraw_MonthViewDay Then
   If isSperrtag(DrawParams.Date) Then
      pTheme2007.MonthView.Day.Header.BaseColor = vbRed
   End If
End If

Thanks
Back to Top
SuperMario View Drop Down
Senior Member
Senior Member
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 November 2009 at 11:12am
Did you try xtpCalendarBeforeDraw_MonthViewWeekDayHeader or xtpCalendarBeforeDraw_MonthViewWeekHeader?
Back to Top
guru4 View Drop Down
Newbie
Newbie


Joined: 02 October 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru4 Quote  Post ReplyReply Direct Link To This Post Posted: 25 November 2009 at 5:24am
No that doesn't solves the problem. I know now the events sequenc of your control:

1. Weekheaders 1-4
2. WeekDay 1-7
3. Day: FROM 29.11.2009 - 26.10.2009 DESC evereytime when I move the cursor!!!!!!

My Problem is: I want to color the header for example christmas on 25.12.2009. In Weekview no problem.

Thanks for help!

Back to Top
guru4 View Drop Down
Newbie
Newbie


Joined: 02 October 2009
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote guru4 Quote  Post ReplyReply Direct Link To This Post Posted: 16 December 2009 at 4:33am
I have solved the problem by not color the header, but the background of the day.

' Bei Tages- oder Wochenansicht
' *****************************
If eObjType = CalendarBeforeDrawThemeObject.xtpCalendarBeforeDraw_DayViewDay Then
   If isSperrtag(DrawParams.Date) Then
      pTheme2007.DayView.Day.Header.BaseColor = vbRed
   End If
  
' Bei Monatsansicht
' *****************
ElseIf eObjType = CalendarBeforeDrawThemeObject.xtpCalendarBeforeDraw_MonthViewDay Then
   If isSperrtag(DrawParams.Date) Then
      pTheme2007.MonthView.Day.BackgroundLightColor = 13095160
      pTheme2007.MonthView.Day.BackgroundSelectedColor = vbRed
   End If
End If
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.063 seconds.