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
#16992
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
I'll change the double click action so that it will be possible to show the menu always and also to disable it completely. I'll also add an event handler for double clicking a day so it can trigger a script too.
Rainy
Moderator
Posts: 5935
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16994
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
Thanks you, Rainy! Look forward to the new build.

But, perhaps I did not say clearly:
If had set 'single-click handler', when I double-click a day, it will trigger two things, 'single-click handler' and 'double-click handler', but I hope that it will only trigger 'double-click handler', without triggering 'single-click handler'.
Can avoid to trigger 'single-click handler' ?


Added:
My idea is very simple, do not know is not feasible?
add a judgment, like:
if (Is click) then
if (Is double click) then
run double click handler
elseif (Is single click) then
run single click handler
end
end
anoob
Platinum Boarder
Posts: 498
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/15 12:30 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
 
#16995
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
That's a bit tricky since when the single click handler is executed the application doesn't yet know if there will be a second click or not. One solution would be to start a timer in the single click handler and if it triggers before the double click handler gets called it means that the user clicked only once. The problem with this of course is that there will be a delay before single clicks are handled.
Rainy
Moderator
Posts: 5935
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#16996
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
Wow! I see it everytime in your signature, but never notice. Thanks anoob!
Who knows. Always learning something new.

Do you know if can be added another type (like a 3-state option) or change them to active and inactive?

Hot news!!! I found the .type in the translate.lua file. I need to check better the widgets files...
Jorge_Luis
Platinum Boarder
Posts: 792
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.
 
#16999
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
Do you know if can be added another type (like a 3-state option) or change them to active and inactive? Add another type by user themself is impossible.

You mean you want to toggle window be active/inactive ?
I though, it is a big engineering.
anoob
Platinum Boarder
Posts: 498
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
 
#17016
Re:Rainlendar 2.10 BETA build 116 2 Years, 4 Months ago  
I was thinking out loud... or thinking for future skins that I have no idea right now. Forget what I said.

I found something, but I'm not sure if it is a bug or what. From help file:
The custom categories are defined for the currently selected skin so if you are using multiple skins you need to define the categories separately for each skin... Note that the possibilities to change the appearance depend on the skin you are using... Is the first time I try this. Which is the "currently selected skin"? I know that double clicking on a skin set it as the current one, but where is this value stored? If I have multiple skins, how can I select another skin, not the current one? Maybe linking the button with the window selected in the active skins?
Jorge_Luis
Platinum Boarder
Posts: 792
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.
 
Go to topPage: 12345
get the latest posts directly to your desktop