Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Timetable view - Hide Header? (Read 2900 times)
Anna
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 4
Joined: Mar 20th, 2007
Timetable view - Hide Header?
Mar 20th, 2007 at 10:05pm
Print Post  
Hi,


I was wondering if it's possible to hide the header that displays the date in the Timetable view.
I still want to see the "All Day" Items but not see the date at the top. Is this possible?
I've set both the Mainheadingsize and subHeadingSIze to be 0 but it still shows..

Thanks for your help,
Anna
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Timetable view - Hide Header?
Reply #1 - Mar 21st, 2007 at 5:00am
Print Post  
Unfortunately this is not possible yet. You can however specify 1 pixel for the header height and remove the header text. Here is the code for this:

Code
Select All
calendar1.TimetableSettings.HeaderDateFormat = "  ";
calendar1.TimetableSettings.MainHeaderSize = 1; 


Note: Pay attention that the format of the header text is two spaces. It seems that DateTime.Format gives errors when trying to use only one space as a formatting string.

This way the header will look like a thin line. You can alse set the color of that line through the HeaderBrush property of the appropriate Style object. The followig code sets the color to White.

Code
Select All
calendar1.TimetableSettings.Style.HeaderBrush =
    new MindFusion.Drawing.SolidBrush(Color.White); 


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