Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Calendat Sub Header (Read 2173 times)
ColinA
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 21
Joined: Aug 27th, 2013
Calendat Sub Header
Oct 23rd, 2013 at 10:00am
Print Post  
Hi

Can you set  set colour of   the  sub headers on the  calendar when adding a new contact to the schedule to different colours

cheers
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Calendat Sub Header
Reply #1 - Oct 23rd, 2013 at 10:40am
Print Post  
Hi,

If you want to color the headers of the columns in a grouped Timetable view, you need to rely on custom drawing. Set Calendar.CustomDraw to CustomDrawElements.TimetableColumnHeader, handle the Calendar.Draw event and perform the drawing in the event handler, for example:

Code
Select All
void calendar_Draw(object sender, DrawEventArgs e)
{
	if (e.Element == CustomDrawElements.TimetableColumnHeader)
	{
		e.Graphics.DrawRectangle(Pens.Red, e.Bounds);
	}
} 


Keep in mind that the custom drawing is performed after the element's default appearance has already been rendered. Therefore, if you fill the area with solid color, you may need to manually repaint the header text.

Regards,
Meppy
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint