TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: arbitrajeu on October 26, 2003, 07:09:40 PM

Title: [CONCEPT] RSS online/offline links
Post by: arbitrajeu on October 26, 2003, 07:09:40 PM
Forgive me if this is a stupid question - maybe it's just late.

Can anyone explain the precise (behind-the-scenes) behaviour of functions 30/31 of the button command.  I'm sure it does more than enable us to change the colour of the RSS detail links, but don't really understand what.
Title: [CONCEPT] RSS online/offline links
Post by: srs on October 26, 2003, 08:05:18 PM
button 30 is "online".  all this does is, when the rss link buttons are encountered the button will point to the "online" version of the link.

button 31 is the same but "offline".  when the program starts up, the initial state is offline.
Title: [CONCEPT] RSS online/offline links
Post by: arbitrajeu on October 27, 2003, 04:02:24 AM
Thanks for the reply.

Strangely, in my skin it seems to do precisely the opposite.  In trying to investigate further I noticed that there is no description in the skin reference of button action 12.  As in:

imagebutton,15,12,link-online.png,t,-1,12,%var5%

I'm imagining it just tells it to jump to the online/offline page for RSS feed %var5%.
Title: [CONCEPT] RSS online/offline links
Post by: arbitrajeu on October 27, 2003, 10:20:17 AM
Another point on this subject.

I'm currently refining my skin, specifically around the RSS section.  I would like to be able to put the link-xxx.png on the description page, to reduce the number of buttons on the main page.  However, this is giving me all sorts of problems with respect to the on/offline status.

Presently, I have the on/offline toggle as a main button next to my refresh:

(http://www.arbitrajeu.co.uk/rss_page.jpg)

I think this should allow me to toggle the on/offline status for my RSS data.  However, I can't work out how to get it to influence the icons displayed on the description pages:

(http://www.arbitrajeu.co.uk/rss_description.jpg)

Any thoughts anyone?
Title: [CONCEPT] RSS online/offline links
Post by: srs on October 27, 2003, 12:30:19 PM
button action 12 is the actuall rss link button.  basically its just a slightly modified launch button that links the button to the "online" link if the TodayPlus is "online" and the cached page if not.

I can think of a couple of ways to fix the seconf problem but without seeing the skin file, it will be hard to give an exact solution.

I assume you have two pages within the same region for the main online / offline button ?

so for example:


region,0,0,-1
// were offline initially
// draw offline buttons and button to jump to page 1
endregion,0,0

region,0,1,-1
// we're online now
// draw button to jump to offline
endregion,0,1


so what you could do is something like this:

inside the "description" page of the rss feed:


region,0,0,-1
// draw button for offline link
endregion,0,0

region,0,1,-1
// draw button for online link
endregion,0,1


I guess the main idea is that theres no limitation in that a page/region is used only once (in a contigious section) in the skin...

I hope that makes sense.
Title: [CONCEPT] RSS online/offline links
Post by: arbitrajeu on October 27, 2003, 12:53:21 PM
srs,

I thought this made sense, but then it didn't work when I tried to implement it.  Also, in addition to the problem with the defregion I now think it might be a little more complicated.

I've backed out the change from my skin, which is attached to this post.

Specifically, my problem is with region 7, pages 0/1, which are defined near the top of the skin and displayed beside the date to allow me to toggle the online indicator and hide the refresh button (which works a treat now).  I'd also like this indicator to affect the link imagebutton in region 0, page 21, which is right at the bottom of the skin file.

Would be really grateful of you could take a look.  Thanks.

PS The rest of the skin is a bit of a mess at the moment - lots of WIP, but hopefully nothing interfering with this part.
Title: [CONCEPT] RSS online/offline links
Post by: srs on October 27, 2003, 01:29:41 PM
ok, I was apparently wrong  :wink:

the way I outlined is the way things are supposed to work, but I must have changed this behavior for some reason (I vaugly remember changing it, but I'm not exactly sure why ?)

so for now just define another region that kind of mirrors the state of region 7.

I've attached a skin that works.