Welcome, Guest
Please Login or Register.    Lost Password?

lua script to list month names?
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: lua script to list month names?
#19780
lua script to list month names? 1 Year, 2 Months ago  
anyone out there know of/how to do a lua script for a button press that will list the month names and jump to selected month?
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19781
Re: lua script to list month names? 1 Year, 2 Months ago  
Welcome to the forum, darren1234.

I've made 2 years ago a skin to quick change the current date showed in Rainlendar.
It doesn't show the month names but the month numbers to keep it universal and not language dependent.
jorgeluis-jorgeluis.deviantart.com/art/QuickDate-1-0-for-Rainlendar2-202339966
Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#19782
Re:lua script to list month names? 1 Year, 2 Months ago  
Thanks, nice solution, but that is not what I wanted as it will involve invoking a seperate window, whereas I was looking for something similar to the Global_SnoozeMenuAll() function.
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19783
Re:lua script to list month names? 1 Year, 2 Months ago  
Well, there is also this same option ("Choose month") in the Rainlendar's context menu.
If you want a context menu for your window, you can have something like:

Code:

function Button_SelectMonthByName()
  index = Rainlendar_ShowMenu(-1,-1,{"Jan","Feb","Mar","Apr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dec"})
  day, month, year = Rainlendar_GetDisplayDate()
  Rainlendar_SetDisplayDate(day, index-1, year)
  Rainlendar_Redraw(0)
end

Jorge_Luis
Platinum Boarder
Posts: 795
graphgraph
User Offline Click here to see the profile of this user
Gender: Male My Rainlendar Skins Location: Argentina Birthday: 03/15
The administrator has disabled public write access.
 
#19784
Re:lua script to list month names? 1 Year, 2 Months ago  
Many thanks, Jorge_Luis, that is exactly what I was Looking for.
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#19790
Re:lua script to list month names? 1 Year, 2 Months ago  
Have changed the language from the Rainlendar options to see if it would translate the english menu items that I have used to the chosen language. No joy, though it does translate my english tooltips for 'Next month' and 'Previous month' and for 'Current month' but not for 'Current Month (right-click select month)', it also translates the event and todo list titles.
darren1234
Junior Boarder
Posts: 31
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
get the latest posts directly to your desktop