Add the code that enables Set and Clear.
To add code to Set:
Use the calendars from the Configuring a Calendar Set Button procedure, and right-click Set (cbtSet_1).
Select Scripts.
In Script Editor, enter code to execute Set when the button is clicked.
For example, enter setCal(this). This example refers directly to the functions under the Adding Code for FrameActivate, Clearing, Setting, and Activation Functions procedure.
Click OK.
Repeat steps 1–4 for Set (cbtSet_2).
To add code to Clear:
Use the calendars from the Configuring a Calendar Set Button procedure, and right-click Clear (cbtClear^Qiq_cal^1).
Select Scripts.
In Script Editor, enter code to execute Clear when the button is clicked.
For example, enter clearRangeCal(this). This example refers directly to the functions under the Adding Code for FrameActivate, Clearing, Setting, and Activation Functions procedure.
Click OK.
Repeat steps 1–4 for Clear (cbtClear^Qiq_cal^2).