OK, THANK YOU again Jorge. The script is working exactly the way I want now. I did add one minor modification above the if active < 1 line:
if active < 1 then newText = newText .. "s" end
This way, if no calendars are selected it shows "0 Calendars" ... it's a bit more grammatically correct
Now onto the window moving on refresh:
I added AddSkinRectangles=1 to the ini and it does indeed show the rectangles.
In my skin I noticed I had not added a height value to the window ... SO, I added it.
Now my window has the values:
<window id="MyCalendar" w="243" h="335" threshold="100" default="0" oncreate="MyCalendar_Initialize('#SKIN#', '#ID#')"
The entire window still refreshes at the middle of my screen, maybe 200 pixels down even though I copied the height and width values of the rectangles exactly.
I am wondering IF this has to do with the fact that my "EventList" is attached to the main window "MyCalendar" ... because the Eventlist would be dynamic right?