Page Index Toggle Pages: 1 [2]  Send TopicPrint
Hot Topic (More than 10 Replies) Change the main backcolor of an appointment (Read 19814 times)
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Change the main backcolor of an appointment
Reply #15 - May 10th, 2009 at 1:31pm
Print Post  
Have you tried using the HeaderFont instead?

Meppy
  
Back to top
 
IP Logged
 
andersco
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Jan 25th, 2009
Re: Change the main backcolor of an appointment
Reply #16 - May 12th, 2009 at 5:50pm
Print Post  
Thanks that works, although when I try something like this:

style.Style.HeaderFont = new Font(calendarMindFusion.Font.Name, calendarMindFusion.Font.Size, FontStyle.Bold);   

and then:
               
style.Style.HeaderFont = new Font(calendarMindFusion.Font.Name, calendarMindFusion.Font.Size, FontStyle.Regular);                   

The font doesn't seem to go back to the original font.  It is unbolded, but the size is larger and it is off-center.  Is there another property I should use other than calendar.Font in order to get the font of the days?  I am using the "SingleMonth" view.

Thanks.
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Change the main backcolor of an appointment
Reply #17 - May 13th, 2009 at 6:03am
Print Post  
Try assigning null to the HeaderFont property in order to use its original value or completely remove the DateStyle from the calendar if it is not going to be used at all. Although the code you are using seems appropriate as well.

Meppy
  
Back to top
 
IP Logged
 
andersco
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: Jan 25th, 2009
Re: Change the main backcolor of an appointment
Reply #18 - May 14th, 2009 at 5:38am
Print Post  
Okay assigning the HeaderFont property to null works.

Thanks.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1 [2] 
Send TopicPrint