Welcome, Guest
Please Login or Register.    Lost Password?

show specific month in past year
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: show specific month in past year
#19098
show specific month in past year 1 Year, 5 Months ago  
Hello,

First of all , I love this software. Thank you Rainy, it's fantastic.

I will try to be clear with my question. English is not my native language.

I use the grid calendar with 15 months (for scholar purpose). I would like it to begin on July 2012.
From July 2012 to December 2012 , I just have to set the "Visible Month" to 7.
But from january 2013 to june 2013, I have to change this value each month to -6, -7, ...
Is there a way to have "visible month" set to july 2012 permanently ?

Thank you for your answers.

Regards

Kinou
kinou
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19101
Re: show specific month in past year 1 Year, 5 Months ago  
The absolute "Visible Month" setting works only with positive values so it can't be used to show months from past year. You could try to use scripting to change the displayed month. Here's one which changes the start month to July 2012 once per minute.

Code:

function ResetToJuly_OnTimer(userData)
  Rainlendar_SetDisplayDate(1, 6, 2012)     -- Jan = 0, Feb = 1, ...
  Rainlendar_Redraw(0)
end

-- Create a timer which triggers once per minute
ResetToJuly_OnTimer(nil)
Rainlendar_CreateTimer(60 * 1000, ResetToJuly_OnTimer)



You can paste the code to a *.lua file and place it in Rainlendar's scripts folder and it should work after automatically.

If you want to improve the script there is a similar one in the wiki which does things a bit better as it doesn't change the date unless necessary and works better if the display date is changed manually.
Rainy
Moderator
Posts: 5946
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19105
Re:show specific month in past year 1 Year, 5 Months ago  
Thank you for your help.
I will try that soon

Kinou
kinou
Fresh Boarder
Posts: 6
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1
get the latest posts directly to your desktop