Please enable JavaScript to view this site.

 

Navigation: Tokens > Tip and Tricks

Partially Shading Minicalendars

Scroll Prev Up Next More

In the current month options of the mini-calendars script line property, you can specify that the mini-calendar corresponding to the current month should be framed, or have its background shaded.

 

That shade or frame is then applied to the entire textbox containing the mini-calendar token.

 

But, suppose you wished to shade only part of the current mini-calendar of a diary, as shown below.

 

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

 

 

The important element is that the mini-calendar 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 mini-calendar 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 mini-calendar text will remain colorless, while the desired shade will be displayed for the other textbox.

 

Shading 2 Minicalendars When There Is a Change of Month

 

Note that, by default, the current mini-calendar is the one whose month corresponds to the month of the mini-calendar Marker token. If you wish to have 2 mini-calendars 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 GridOptions property accordingly.

 

See also: current month mini-calendar options and other tokens tips and tricks.

 


Topic 174560, last updated on 04-Mar-2021