Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Colour cell in month view
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Colour cell in month view

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


Joined: 28 March 2007
Location: United Kingdom
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote tejsingh Quote  Post ReplyReply Direct Link To This Post Topic: Colour cell in month view
    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
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
tejsingh View Drop Down
Newbie
Newbie


Joined: 28 March 2007
Location: United Kingdom
Status: Offline
Points: 25
Post Options Post Options   Thanks (0) Thanks(0)   Quote tejsingh Quote  Post ReplyReply Direct Link To This Post Posted: 14 May 2007 at 6:46am
Cheers

How comes this was not implemented in 2003 outlook template
Back to Top
sserge View Drop Down
Moderator Group
Moderator Group


Joined: 01 December 2004
Status: Offline
Points: 1297
Post Options Post Options   Thanks (0) Thanks(0)   Quote sserge Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post 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?
 
Back to Top
apuhjee View Drop Down
Senior Member
Senior Member
Avatar

Joined: 02 September 2005
Location: United States
Status: Offline
Points: 130
Post Options Post Options   Thanks (0) Thanks(0)   Quote apuhjee Quote  Post ReplyReply Direct Link To This Post 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.
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.