Print Page | Close Window

Colour cell in month view

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Calendar
Forum Description: Topics Related to Codejock Calendar
URL: http://forum.codejock.com/forum_posts.asp?TID=6983
Printed Date: 27 November 2024 at 12:05am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Colour cell in month view
Posted By: tejsingh
Subject: Colour cell in month view
Date Posted: 26 April 2007 at 4:14am
Hi

I dont think this can be done thought i might ask.

I need to colour weekends on a month view. I know this can be done in day and week views?

But is it possible in month view?

Cheers

TJ



Replies:
Posted By: sserge
Date Posted: 12 May 2007 at 9:06am
Well, if you working with Office 2007 theme - yes.

Private Sub CalendarControl_BeforeDrawThemeObject(ByVal eObjType As XtremeCalendarControl.CalendarBeforeDrawThemeObject, ByVal Params As Variant)
...
    ElseIf eObjType = xtpCalendarBeforeDraw_MonthViewDay Then
   
        pTheme2007.MonthView.Day.BackgroundLightColor = ...


--
WBR,
Serge


Posted By: tejsingh
Date Posted: 14 May 2007 at 6:46am
Cheers

How comes this was not implemented in 2003 outlook template


Posted By: sserge
Date Posted: 14 May 2007 at 5:54pm
Well, as far as outlook 2003 was the first available theme, the majority of tweaking functionality was available only for C++ version of the control...

--
WBR,
Serge


Posted By: apuhjee
Date Posted: 12 July 2007 at 12:53pm
Can this color be modified on a per-day basis?  I'd like some cells being drawn with a green background, some with a red background.  This would be similar to the DayMetrics in the DatePicker, I guess.  I'm also guessing that this isn't currently possible.
 
Sergey - could you please let me know if this is possible now (or maybe in the future?)
 
Thanks ~ jp


Posted By: apuhjee
Date Posted: 12 July 2007 at 1:33pm
)  BeforeDrawThemeObject is nowhere to be found in the C# sample (AKA THE DOCUMENTATION)
 
)  This event IS illustrated in the VB sample
 
)  From what I can tell, this event is never being fired in .NET.
 
 
What's the deal?
 


Posted By: apuhjee
Date Posted: 12 July 2007 at 3:03pm
Nevermind.  Just found BeforeDrawThemeObjectFlags...
 
Still wondering how the background color of a Month View day can be set though... casting e.drawParams to CalendarThemeOffice2007MonthViewDay is not working.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net