Please enable JavaScript to view this site.


Navigation: Tokens > Tip and Tricks

Partially Shading a Minicalendar

Scroll Prev Up Next More

Suppose you wished to shade only part of the current minicalendar of a diary, as shown below.


The solution is to have 2 textboxes per minicalendar, one containing the minicalendar, and the other one being used to display the shade (and containing as only text the same minicalendar marker token as the box containing the minical text).



The important element is that the minicalendar textbox's background color should be none, while the color of the shading textbox should be set to the desired color. The shade of both boxes should be set to 0%.


Then in the minicalendar options for the current month, specify that the shade should be set to a non-zero value for the current month (but do not specify a color), as shown on the right of the above example. Both textboxes' shade will be changed, but 100% of the color None is still None, so the background of the textbox containing the minicalendar text will remain colorless, while the desired shade will be displayed for the other textbox.


Note that by default the current minicalendar is the one whose month corresponds to the month of the Minicalendar Marker token. If you wish to have 2 minicalendars treated as current, for example in a weekly diary with a change of month across 2 pages, then you can do this by setting the minical is defined as current if option of the current DiaryGridLine's GridOptions property accordingly.


See also: other tokens tips and tricks.