So I've looked at the various Marquee samples in the SDK but I'm still at a loss of getting this to work.
Assume I have a panel which takes up 25% of the screenwidth, in this panel I have a Scroller/Repeater containing, let's say 22 textbuttons. These buttons are the width of the parent (ie. 25%). The text inside these buttons can vary from 3 to 30 characters. Obviously 30 characters does not fit inside the 25% of screen realestate so the text is 'clipped' (in want of a better word) on some of the buttons.
Ok, so I figure this is easy, I'll scroll the text back and forth (sorta like what happens in a dialogbox button if the text is to long), problem solved. Alas, I can't get this to work.
The problem, I think, is one; how to determine if the text is longer than the button and needs to scroll (ie. I only want the text to move if it has to), and two; how to scroll the text inside the button of undefined width (sure, it's 25%, but 25% of what? - 4:3/16:9 etc).
Any of you done this previously?