I build a 2-months vertical calender based on the 'vertical calender' xml-file, because I don't want the 'postexdays' in the first calender and the 'preexdays' in the second calender. This isn't possible with two separated Calender files, because the 'Show adjacent days' option influences both calenders at the same time.
I deleted the month-3 till month-8 info from the original xml-file and added the month-back and month-forward buttons to the first month.
Everything works fine, except when the first month is December and the second month is January. Then suddenly the 'postexdays' appears at the end of the first month (December) and the 'preexdays' appears at the begin of the second month (January). All other combinations works fine.
What must I change in/add to the xml-file to avoid this behaviour? This is the code of the xml-file:
| Code: |
<?xml version="1.0" encoding="UTF-8" ?>
<skin version="1.0">
<window id="Vertical Calendar 2 Months" w="165" threshold="48" default="0">
<month id="Vertical Calendar.month.1" element="bitmap.months" x="20" y="0" w="125" h="20" align="TOP-CENTER" showmonth="0" />
<button id="Calendar.button.prev" visible="1" element="button.arrow.left" x="0" y="2" action="Global_ShowMonth(-1)" />
<button id="Calendar.button.next" visible="1" element="button.arrow.right" origin="TOP-RIGHT" x="-20" y="2" action="Global_ShowMonth(+1)" />
<calendar id="Vertical Calendar.calendar.1" x="0" y="20" w="160" h="120" layout="GRID" showmonth="0" keeptodayinplace="0" postshowcount="0" preshowcount="0">
<days>
<appearance priority="-1" element="bitmap.numbers.white" align="CENTER" />
</days>
<weekends>
<appearance priority="-1" element="bitmap.numbers.pink" align="CENTER" />
</weekends>
<exdays showpreexdays="1" showpostexdays="0">
<appearance priority="-1" element="bitmap.numbers.lt.grey" align="CENTER" />
</exdays>
<exweekends>
<appearance priority="-1" element="bitmap.numbers.lt.pink" align="CENTER" />
</exweekends>
<events>
<appearance priority="0" element="bitmap.numbers.blue" align="CENTER" />
</events>
<today>
<appearance layer="10" element="bitmap.today" align="CENTER" />
</today>
<weeknums>
<appearance visible="%Show_week_numbers%" element="bitmap.numbers.white.small" align="CENTER" />
</weeknums>
<weekdays>
<appearance element="bitmap.days" align="CENTER" />
</weekdays>
</calendar>
<month id="Vertical Calendar.month.2" element="bitmap.months" x="20" y="142" w="125" h="20" align="TOP-CENTER" showmonth="+1" />
<year id="Vertical Calendar.year.2" element="bitmap.numbers.white.small" origin="TOP-RIGHT" x="2" y="144" align="TOP-RIGHT" showmonth="+1" />
<calendar id="Vertical Calendar.calendar.2" x="0" y="162" w="160" h="120" layout="GRID" showmonth="+1" keeptodayinplace="0" postshowcount="0" preshowcount="0">
<days>
<appearance priority="-1" element="bitmap.numbers.white" align="CENTER" />
</days>
<weekends>
<appearance priority="-1" element="bitmap.numbers.pink" align="CENTER" />
</weekends>
<exdays showpreexdays="0" showpostexdays="1">
<appearance priority="-1" element="bitmap.numbers.lt.grey" align="CENTER" />
</exdays>
<exweekends>
<appearance priority="-1" element="bitmap.numbers.lt.pink" align="CENTER" />
</exweekends>
<events>
<appearance priority="0" element="bitmap.numbers.blue" align="CENTER" />
</events>
<today>
<appearance layer="10" element="bitmap.today" align="CENTER" />
</today>
<weeknums>
<appearance visible="%Show_week_numbers%" element="bitmap.numbers.white.small" align="CENTER" />
</weeknums>
<weekdays>
<appearance element="bitmap.days" align="CENTER" />
</weekdays>
</calendar>
</window>
</skin>
|
<br><br>Post edited by: Alf, at: 2006/12/05 12:33