Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Office 2007 style week tabs in Month View (Read 9276 times)
tomk
YaBB Newbies
*
Offline


Yaos!

Posts: 29
Joined: Apr 25th, 2006
Office 2007 style week tabs in Month View
Aug 16th, 2006 at 12:27pm
Print Post  
Hi,

Our UX designer has requested that we use the Office 2007 style week "tabs" in a Month view (and possibly Month Range) instead of the week numbers that are already available in the control.  I know we could override Paint and replace the Text, but as far as I can tell the week "tabs" are not clickable.  I have not found an easy way to know the locations of these week number tabs and respond to mouse events.
What we would like to do is paint these tabs with date ranges (e.g. Aug 20-26) instead of week numbers, and also have a built-in Click and other mouse events.  It moreover would be very helpful to have these tabs added to the GetElementBounds method you added for us previously, in case we needed to do other customization or interaction with user mouse or other events.

Let me know if that sounds reasonable and if you think it can be done in a future version.

Thank you
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Office 2007 style week tabs in Month View
Reply #1 - Aug 17th, 2006 at 5:11am
Print Post  
We will implement these features in the next release. There would be a new format option for the text displayed in the week header, a built-in Click event and a new CalendarElement enum field for the week header element.

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Office 2007 style week tabs in Month View
Reply #2 - Aug 17th, 2006 at 12:09pm
Print Post  
You can download a daily build of Planner.NET from the following link:

https://mindfusion.org/_planner/_Planner.NET_41pre_trial4.zip
(This is a temporary url and might not work in the future.)

This version contains means to completely turn off reminders. You can do this be setting Schedule.DisableReminders to true.

There is also a new string property WeekHeaderFormat in Calendar.MonthSettings, which controls how to format the text displayed by week headers in a SingleMonth and MonthRange views. The value of this property can contain the following formatting specifiers in any number and order:

%w - The number of the corresponding week relative to the current year. This is what was previously displayed in the cells of the week header.

%s[{format}] - The date of the first day in the corresponding week, formatted according to the standard date formatting string, specified by {format}. The brackets '{' and '}' should not be included.

%e[{format}] - The date of the last day in the corresponding week, formatted according to the standard date formatting string, specified by {format}. The brackets '{' and '}' should not be included.

For example, the formatting string "(%w) %s[d ]-%e[d ], %s[MMM]" for the week 13.08-19.08 will yield the following result: "(33) 13-19, Aug". Pay attention to the space following 'd' in the format specification '[d ]'. If the space is missing, the format will be interpreted by the .NET framework as standard short date formatting.

The other features implemented in this release are the new Calendar.MonthWeekHeaderClick event which is fired when a cell in the week header has been clicked and the new MonthWeek field in the CalendarElement namespace, which enables you to obtain the bounding rectangle of any cell in the week header by specifying its index, or the the header as a whole by specifying -1.

Meppy
  
Back to top
 
IP Logged
 
tomk
YaBB Newbies
*
Offline


Yaos!

Posts: 29
Joined: Apr 25th, 2006
Re: Office 2007 style week tabs in Month View
Reply #3 - Aug 24th, 2006 at 5:40pm
Print Post  

This is cool.  Glad you made the week panels clickable and allow us to customize the text.  However, being the demanding customers that we are ( Grin) we have to ask how hard it would be to write the text vertically bottom-to-top as in Outlook 2007 instead of horizontally?  Could there be a Text Orientation setting for this area?
  
Back to top
 
IP Logged
 
Meppy
God Member
*****
Offline


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Office 2007 style week tabs in Month View
Reply #4 - Aug 25th, 2006 at 4:35am
Print Post  
Of course.

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


MindFusion support

Posts: 1783
Joined: Jul 20th, 2005
Re: Office 2007 style week tabs in Month View
Reply #5 - Aug 25th, 2006 at 6:11am
Print Post  
Check this version:

https://mindfusion.org/_planner/_Planner.NET_41pre_trial6.zip
(This is a temporary url and might not work in the future.)

There is a new property RotateWeekHeaderTexts in the MonthSettings class, which controls whether week header texts are rotated or not.

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