TodayPlus Boards v2

TodayPlus for the Pocket PC Forums => Help and Support => Topic started by: MadTxn on December 02, 2003, 10:20:15 AM

Title: defregion-override question
Post by: MadTxn on December 02, 2003, 10:20:15 AM
Here's the plan...

I want to have my RSS section have a popup to display the RSS item description.  However, I have three sections below the RSS section that could be active or not.  I can write a hideous if...else statement to decide where each section may or may not be, but I'd rather not.  Is there a way to use variables or something in the defregion-override?

I'll probably just move the RSS section to the bottom...
Title: defregion-override question
Post by: srs on December 02, 2003, 04:48:36 PM
let me see if I can understand the situation better:

you want to display the rss description below the rss item area, but there could be different regions below the item area ?

without knowing the specifics of the skin, I can think of a couple of possiblities, and I'm not sure which one would meet your demands.

1)  you can put all those regions that are below inside another region and have the rss description as another page in that "parent" region,

ie.


region,0,0,-1

region,1,0,-1
// subregion 1
endregion,1,0

region,2,0,-1
// subregion 2
endregion,2,0

region,3,0,-1
// subregion 3
endregion,3,0

endregion,0,0

region,0,1,-1
// RSS description region
endregion,0,1


this may require a full rerender if the height is going to change when you activate the descriptions.  you can use some if statements to check if they are necessary.

2.  using if statements (it shouldn't be too bad...).  something along the lines of:

if,region,1,0
  if,region,2,0
     if,region,3,0
         // we have all 3 regions active...
     else
         // regions 1 & 2 active
     endif
  else
     if,region,3,0
         // regions 1 & 3 active
     else
         // region 1 active
     endif
  endif
else
....


depending on which regions are active, you could customize the size the rss description will take / decide if you want to do a full rerender (to increase the size), etc

feel free to post your skin or ask any further questions if you need any more help.
Title: defregion-override question
Post by: MadTxn on December 03, 2003, 10:10:44 AM
Hmm... rereading my post, I see that I was none too clear on what I wanted.  My idea was to have a popup bubble (like the filters on the slider skin) with the RSS description.  The reason is that for my movie listings feed, especially with new movies, the description can be quite large.  

Your second solution is what I was going to do, I just was wondering if there was an easier way.

What I have done is moved the RSS section to the bottom, and I'm going to have the description as a popup bubble higher than it.  I should be able to accomplish this with defining a region with absolute position values, and not using any offsets.  I've accidentally overlayed regions before, so I'm sure I can do it on purpose. ;)

Thanks for the response.
Title: defregion-override question
Post by: fishboy on December 03, 2003, 01:26:25 PM
MadTxn,

A little off topic, but what rss feed are you using for movie listings?
Title: defregion-override question
Post by: MadTxn on December 03, 2003, 01:31:31 PM
I wrote a PHP script to get movie listings.  You can get it from this thread:

http://www.dark-mojo.com/TodayPlus/viewtopic.php?p=3872#3872

But you need to have an accessible PHP server to make it work.