o Added "w" and "h" attributes for the days element in the calendar which can be used to define the size of the day in the free layout.
o Rainlendar_SetVariable() didn't work. Fixed.
o Added a special calendar called "[None]" to the included/excluded calendar list which can be used to show/hide events which do not belong to any calendar.
Thanks! So many thanks, Rainy!
The [none] calendar works perfectly. And with the w field the icons show in the right place.
About the SetVariable...
Well, it works. It looks like the problem is changing the Show_weekdays variable. Look this code:
| Code: |
function Shadow4_Test_Initialize(skin, window)
test = Rainlendar_GetVariable(skin, window, "Test")
if (test == "Zero") then
Rainlendar_SetVariable(skin, window, "Show_weekdays", 0)
Rainlendar_SetItemValue(skin .. "::" .. window, "Horizontal Line Calendar.year", "Visible", 0)
else
Rainlendar_SetVariable(skin, window, "Show_weekdays", 1)
Rainlendar_SetItemValue(skin .. "::" .. window, "Horizontal Line Calendar.year", "Visible", 1)
end
Rainlendar_Redraw(0)
end
|
Changing the value of test makes the year be visible/invisible. But this doesn't affect the weekdays. I tried setting 0 and "0", but is the same.
Could be that this doesn't work because Show_weekdays is in <weekdays> inside <calendar> and year is inside <window> directly?