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?

Single Window Skin & toggling elements
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: Single Window Skin & toggling elements
#14900
Single Window Skin & toggling elements 3 Years, 7 Months ago  
I am currently making a single window skin where the grid calendar is always showing, and I'd like to have the Events, To Do and Calendars attached at the bottom, BUT, only show them when a button is clicked.

SO, for now I have one <window> with 2 image backgrounds, one for the grid calendar and one for my events. This way they are one window and move together.

IE (very simple explanation of the skin so far):

<window id="main" yada yada>
<image id="grid background" yada yada />
<image id="events background" yada yada />
<calendar id="calendar.grid">
yada yada
</calendar>
<eventlist id="eventlist">
</eventlist>
</window>

Now, I want a button for "To Do" to be attached to the bottom of the "main" window, in place of the eventlist. But I want the eventlist to hide, and the to do to show.

I know I can toggle windows, show or hide them, but this is a single window.

How would I go about this, without having to write a new skin for each bottom piece and use the buttons to load the new skin?

IS it possible to show/hide a non-window? like, "hide<eventlist id="eventlist">" ?
Rodger
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Manyk Photography Location: Canada Birthday: 05/07
The administrator has disabled public write access.
 
#14904
Re: Single Window Skin & toggling elements 3 Years, 7 Months ago  
The Help File has explanation for most of the skin's items.
If you check on <eventlist> you will see the attribute visible.

Check also the window "Sidebar" in the Shadow4 skin, which has more or less what you're saying (except the buttons. Calendars means Calendar 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
The administrator has disabled public write access.
 
#14905
Re:Single Window Skin & toggling elements 3 Years, 7 Months ago  
OK, I get the visible="0" or 1 values. BUT, I don't know how to make a button change multiple values.

I need to change 4 things and I don't know what they are ... from reading the help file.

<eventlist id="events" visible="0"></eventlist>
<todo list id="to do list" visible="1"></todolist>

I want to make eventlist visible and todo not visible with a button ...

do I use:
"Rainlendar_SetElementValue(skin, element, field, value)"
or
"Rainlendar_SetItem_Value(window, item, field, value)"

and how do I use them? I have no idea what the element, field, item, values are
Rodger
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Manyk Photography Location: Canada Birthday: 05/07
The administrator has disabled public write access.
 
#14919
Re:Single Window Skin & toggling elements 3 Years, 7 Months ago  
Elements are the images and fonts which are inside the <elements> section and the items are things like buttons, calendars, lists and such. So in this case you would use the Rainlendar_SetItemValue() function. In the parameters window is the id of the window which contains the item, the item is the id of the event or todo list, the field is the name of the attribute you want to change ("visible") and the value is the new value for it ("0").
Rainy
Moderator
Posts: 6045
graph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#15009
Re:Single Window Skin & toggling elements 3 Years, 7 Months ago  
OK, after a long time of going over and over the script in the Chromophore directory I have finally been able to do a script that toggles my elements visible or not.

I do still have a couple questions, but let me explain the skin very simply.

It's a single window skin, which has 4 tabs. These tabs are "Clock" "Calendars" "Events" "ToDo".

When I click on the button "Clock", the script hides (visible="0") all elements for the other tabs and shows (visible="1") the elements for the "Clock".

So far so good ... BUT, when I am showing "Clock" "Calendars" or "ToDo", the hover tootltip for the events list still pops up when the mouse in the area of an event. And, this is when "Events" has been toggled to visible="0". So, is this a bug? Or, do I have to somehow make tooltips for events visible="0"? I am running Version 2.8.1 (b103) 32Bit on 64Bit Windows 7.

Next question: How can I make two buttons to show & disable all calendars with a click.
I know about single calendars ... action="Global_Disable_Calendar(#TEXT#)" ... but what is the action for all ?

Thanks for the help so far.
Rodger
Junior Boarder
Posts: 33
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Manyk Photography Location: Canada Birthday: 05/07
The administrator has disabled public write access.
 
#15021
Re:Single Window Skin & toggling elements 3 Years, 7 Months ago  
The tooltip for hidden items is probably a bug. I'll check that.

There doesn't seem to be a function to list all calendars. I can add that in the next build.
Rainy
Moderator
Posts: 6045
graph
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