Minicalendar Weekly Bands Tokens
Minicalendar Weekly Bands Tokens are a variation of minicalendar tokens used to highlight the current week of a minicalendar.
➢The textbox which contains the Weekly Band token is either deleted or it is kept, with the token being replaced by a blank.
The syntax of these tokens is either:
[mcwx.+zz] [mcwx.zzz] (delete textbox only)
[mcWx.+zz] [mcWx.zzz] (delete textbox and grouped objects)
If the date corresponding to the DayValue of this token is within the week represented by the token, then the textbox is kept; otherwise it is deleted.
•The value of x ranges from 1 to 6 and corresponds to the 6 possible partial weeks contained in a month.
•The +zz or zzz correspond to the relative or absolute method of calculating the current month.
Relative Weekly Bands tokens can also be placed in non-current minicalendars.
For obvious reasons, the only ones which will ever be displayed are:
•The last rows of the previous month, namely [mcW5.-01], [mcW6.-01] and [mcW4.-01] (for the rare case of February minicalendars when February starts on a Monday and we are not in a leap year).
•The first row of the next month, namely [mcW1.+01].
If the weekly "band" that you wish to display is not rectangular, then you can group a textbox containing a Weekly Bands token to the object you want to use to highlight the current week of a minicalendar. In the example below, textboxes with Weekly Bands tokens are grouped to a picturebox.
In such cases, make sure to use an uppercase W in the Weekly Bands tokens to indicate that its textbox and any other object grouped to it, should be deleted.
You can add a number of weeks modifier to Weekly Bands tokens, to further specify when these bands should be deleted.
In the above example, the position and size of the weekly bands depend on the number of weeks in the current month. Therefore, there are 4 minicalendars for each possible month, one fore each of the possible cases; a 4, 5 or 6 week month. The example above shows the minica;lendar for the 6-week case, which further uses the :Zn6 number of weeks modifier.