Error 403 from Google Calendar? Upgrade to the new Google Calendar support. See here for details. close
Welcome, Guest
Please Login or Register.    Lost Password?

Rainlendar 2.10 BETA build 116
(1 viewing) (1) Guest
Go to bottomPage: 12345
TOPIC: Rainlendar 2.10 BETA build 116
#16978
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
anoob:
a) Yep, the maxheight doesn't work correctly with recurring events. I'll fix that.
b) & c) There is a strange 'feature' with the Rainlendar_ListAllComponents() as it will increase the selected year by one if you click a past date. I'm not really sure what have I been thinking when with that implementation but I'll change it.

I'll increase the width of the calendar controls in the export dialog again but if that still doesn't help I can try to change them to drop down controls as Jorge Luis suggested.

Do you mean that it should be possible to open the menu also when double clicking a day without any events? Currently the only enabled item in the menu would be to create a new event so should it contain some other things too (create new task?)?

Here's the small tester I was using with the click handler:

Code:

function OnCalendarClicked(eventData, window, userData)
  Rainlendar_Log("Clicked " .. eventData["calendar"] .. " " .. eventData["date"])

  uids = Rainlendar_ListAllComponents(nil, eventData["date"])
  
  for k,v in pairs(uids) do
    Rainlendar_Log("UID: " .. k .. " " .. v)
  end
  
end

Rainlendar_SetEventHandler(OnCalendarClicked, 15, "Calendar")

Rainy
Moderator
Posts: 6068
graph
User Online Now Click here to see the profile of this user
The administrator has disabled public write access.
 
#16982
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
Do you mean that it should be possible to open the menu also when double clicking a day without any events?
Currently the only enabled item in the menu would be to create a new event so should it contain some other things too (create new task?)?
I mean is : right now, if I select "Show menu" then double click a day without event/task, it will open 'Event Dialog' rather than show menu.
Sometime will confused: why open 'Event Dialog'.
Or you can change the option's name, like 'Double click on Event-Day active'.

Another thing :
if I had set CalendarClickEvent to 'Display Date', when I double click a day to create event, it will do 'Display Date' and 'Open 'Event Dialog'. Whether can avoid ?


Added issue:
About ListAllComponents(strCalendar, strDate), if 'strDate' is use day names like Today, Tomorrow, Monday ... etc (except lowercase's 'friday' and 'sunday', them got nothing), will always got all event/task.
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
Last Edit: 2012/04/14 05:26 By anoob.
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#16983
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
Rainy wrote:
Here's the small tester I was using with the click handler:
Thanks for the example.
I was using eventData.calendar and eventData.date (but it's the same). The problem was I didn't select a window name, just thought that using "" will work for all.

* For the backlog: using the same scheme of the Calendar List (with checkboxs), there could be a Window List (with checkboxs). I tried to do this, but still have troubles with the copygroup and the redraw thing.

PS: which is better in Lua, the empty string ("") or the nil value? I know that in C the empty string is the same as '\0'. is this the nil value?
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.
 
#16985
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
Jorge Luis:
Look I previous posted, the eventData is a table, You can use eventData["date"] to get DD-MM-YYYY, and use eventData["calendar"] to get the calendar which was clicked.
Here's the example that i tester:
Code:


function testclick(eventData, window)
  click_date = eventData["date"]
  click_cal = eventData["calendar"]
  date_components = Rainlendar_ListAllComponents(nil, click_date)
  date_components["date"] = eventData["date"]
  Rainlendar_ShowMenu(-1,-1,date_components)
  --Rainlendar_Message(click_date, 0)
  for i,v in ipairs(date_components) do
    local strIcal = Rainlendar_GetComponent(v)
local tmpIcal = strIcal
Rainlendar_Message(tmpIcal, 0)
  end
end

_, _, _, build = Rainlendar_Version()
if build >= 116 then
   local allwindows = Rainlendar_GetWindows()
   for i = 0, #allwindows do
     local _, _, a_skin, a_window = allwindows[i]:find("(.*)::(.*)")
     Rainlendar_SetEventHandler(testclick, 15, a_window)
   end
end



In addition, I had done a Windows List (few month ago):
Code:


function Windowslist_Initialize(skin, window)
  draw = 0
  --Rainlendar_SetEventHandler(ShowWindowslist, 14, window)
  ShowWindowslist(_, skin .. "::" .. window)
end

function ShowWindowslist(_, sw)
  _, _, skin, window = sw:find("(.*)::(.*)")
  windowslist = Rainlendar_GetWindows()
    --Rainlendar_SetItemValue(window, "Windowslist.list", "list", "")
  for i=0, #windowslist do
    windowslist[i] = windowslist[i]:gsub("(.-::)", "")
    if windowslist[i] ~= window then
      itemtype = Rainlendar_IsWindowVisible(windowslist[i])
  if itemtype then
        Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. i + 1 .. ".type", "1")
        Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. i + 1 .. ".text", windowslist[i])
   else
        Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. i + 1 .. ".type", "0")
        Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. i + 1 .. ".text", windowslist[i])
  end
end
  end
  Rainlendar_Redraw(0, window)
end

function ToggleWindowStatus(text, count)
  count = count + 1
  window = "Windows\ List"
  windowtype = Rainlendar_IsWindowVisible(text)
  if windowtype then
    Rainlendar_HideWindow(text)
    Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. count .. ".type", "0")
   else
    Rainlendar_ShowWindow(text)
    Rainlendar_SetItemValue(window, "Windowslist.list", "list." .. count .. ".type", "1")
  end
  Rainlendar_Redraw(0, window)
end

anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
#16987
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
I forgot the <list> item... and I use it too! maybe because the list item isn't detailed in the help file, even named.
I found the multiline tag in the File widget, but where come from the type 0 or 1??

Which would be the value to change a element for a button inside a list?
Does the list accept also active and inactive tags?

I said this because in another post you (anoob) answer to use hotkeys to toggle windows, then I thought in a list.
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
Last Edit: 2012/04/14 21:54 By Jorge_Luis.
The administrator has disabled public write access.
 
#16988
Re:Rainlendar 2.10 BETA build 116 2 Years, 7 Months ago  
Yes, <list> item isn't detailed in the help file, so i wrote it down by myself, like :
The <list> item's Syntax :
<list id="..." origin1="..." x1="..." y1="..." origin2="..." x2="..." y2="..." multiline="..." [list.pos.type="..." list.pos.text="..."](option) >
<header>
. . .
</header>
<item>
. . .
</item>
</list>

list.pos.type - values 0=item 1=header, 'pos' is the row-number
list.pos.text - the text that will display, 'pos' is the row-number
multiline - values 0=Single-line 1=Multi-line

I posted the whole WindowList file :
File Attachment:
File Name: WindowsList.zip
File Size: 8410
anoob
Platinum Boarder
Posts: 508
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: TaiChung, Taiwan, R.O.C. Birthday: 02/12
The administrator has disabled public write access.
I couldn't speak English! This skin released to Customize.org(Do you want it? Click Picture) Please contact me if interested: jhg5702@gmail.com
 
Go to topPage: 12345
get the latest posts directly to your desktop