ThemeOffice2007 and cell backgroundcolor |
Post Reply |
Author | |
KlausConlé
Newbie Joined: 04 October 2006 Location: Germany Status: Offline Points: 2 |
Post Options
Thanks(0)
Posted: 04 October 2006 at 6:12am |
Hello, I would like to change the background colour of each cell individually. With the event BeforeDrawDayViewCell with the help of the class CalendarDayViewCellParams is possible.
Now would I like to work with ThemeOffice2007, the appropriate event is BeforeDrawThemeObject, how I come to the Claas CalendarDayViewCellParams around the background colour of the cell to change?
|
|
kc
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Hi,
It access Cell parameters using Theme2007 object. There are some info on it in another topic (with the example): http://forum.codejock.com/forum_posts.asp?TID=5170 -- WBR, Serge |
|
KlausConlé
Newbie Joined: 04 October 2006 Location: Germany Status: Offline Points: 2 |
Post Options
Thanks(0)
|
Thanks for the fast answer. I can set so the background color for the cells Work/NonWork, but as I can change the color for a certain cell? I believe, I do not understand it correctly.
|
|
kc
|
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
Yes, you can.
Use flag
xtpCalendarBeforeDraw_DayViewCell
and set members:
CalendarControl.Theme.DayView.Day.Group.Cell.WorkCell.BackgroundColor
CalendarControl.Theme.DayView.Day.Group.Cell.NonWorkCell.BackgroundColor
Params member is: CalendarThemeDayViewCellParams -- WBR, Serge |
|
sserge
Moderator Group Joined: 01 December 2004 Status: Offline Points: 1297 |
Post Options
Thanks(0)
|
BTW, below is the example (in VB.NET):
-- WBR, Serge |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |