Archive for February, 2009

Although the original colors look pretty good I did not feel entirely happy with them. So I have redesigned the colors in what I feel is a big improvement. Here you can see the three Office 2007 color schemes…

…the Sparkle Blue palette…

…and finally the System palette…

I know some would prefer the gradient effect colors for selection but I feel this is more appropriate.

ShowToday and ShowTodayCircle

These two properties mimic those available in the standard MonthCalendar control and perform the same funtions. Use ShowToday to have a button placed on the bottom header that is used to change the current selection to today. ShowTodayCircle will provide a highlight around today’s date so that you can find it quickly. This image show both of these properties defined.

There is an OverrideToday property so that you can alter the way in which the today’s date entry is highlighted. So if you prefer to change the background or text color then you can easily do so.


ButtonSpecs

As with many of the Krypton controls you can specify ButtonSpec instances in order to add extra functionality to the control. In the above pictures you can see an extra button with the text ‘XYZ’ added to the bottom header. All button specs are added to the bottom header. If you need to add many additional options you should set a button spec to have a drop down context menu.

Bolded Dates

You can use three properties to describe the dates you would like to appear in bold. These are the same as those for the standard MonthCalendar and allow arbitrary dates, per-month dates and per-year dates. If you prefer to show the dates in a different way you can alter the OverrideBolded state information to achieve the required appearance.

Week Numbers

Many accounting applications needs to show the week number alongside the dates to help the user correctly select the day of interest. Just like the standard MonthCalendar you can set the ShowWeekNumbers property as needed.