Welcome, Guest
Please Login or Register.    Lost Password?

Turn off adjacent days in Dual Calendar
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Turn off adjacent days in Dual Calendar
#1113
Turn off adjacent days in Dual Calendar 7 Years, 10 Months ago  
I've found in the Shadow4 skin settings how to turn off the adjacent days in the single calendars but there appears to be no method of doing the same for the dual calendar.
I'd like to see only the dates of the current month
and not days from last/next month.
Am I missing something?

Thanks
mpgrady
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1114
Re:Turn off adjacent days in Dual Calendar 7 Years, 10 Months ago  
To get rid of them you need to change 2 lines in the xml-file for the dual calendar:

Code:

<exdays showpreexdays="1" showpostexdays="0">


in the section for the first of the 2 months must be changed to:

Code:

<exdays showpreexdays="0" showpostexdays="0">


This should prevent the first month of the dualmonth view to display the preceeding days.

The second line to be changed is:

Code:

<exdays showpreexdays="0" showpostexdays="1">


which is in the section of the second month. change that line to:

Code:

<exdays showpreexdays="0" showpostexdays="0">
Graves
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
to understand recursion you have to understand recursion first!
 
#1128
Re:Turn off adjacent days in Dual Calendar 7 Years, 10 Months ago  
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>

File Attachment:
File Name: vertical_calendar_2_months.xml
File Size: 3342
<br><br>Post edited by: Alf, at: 2006/12/05 12:33
Alf
Expert Boarder
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Dutch translator of Rainlendar
 
#1135
Re:Turn off adjacent days in Dual Calendar 7 Years, 10 Months ago  
That's a bug. Will be fixed in the next build.
Rainy
Moderator
Posts: 5971
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#1149
Re:Turn off adjacent days in Dual Calendar 7 Years, 10 Months ago  
Thank you very much!
It was driving me crazy, because I couldn't find the cause of the problem...
Alf
Expert Boarder
Posts: 89
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
Dutch translator of Rainlendar
 
Go to topPage: 1
get the latest posts directly to your desktop