PDA

View Full Version : Need a brainstorm


rhosk
11-05-2005, 08:30 AM
Good day everyone,

I have a 'concept', for lack of a better term, where I would like to rotate some paragraph objects on the page - either by setText or actually creating them and set visibilities, using the timer. Just looking for your ideas on how I should achieve this and at the same time, not over-use resources. I'm thinking a count++ of some sort on the timer (5 seconds or so), but can't figure out an effecient way of doing it. I don't need code, just ideas. Thanks!!

Roboblue
11-05-2005, 10:19 AM
I could be off base here as i haven't tried it yet, but I have an app that includes a digital clock (system time written to an input box) function. While the clock is running, I cannot see any more cpu cycles being used than if the app was closed. So that seems to be efficient.
If you could set a function that compared the time string variable, + 5 or what ever seconds you need, then fire the event you want, maybe that would work more efficient.
Just a thought and probably not functionally sound.

yosik
11-05-2005, 11:15 AM
Ron,
OnTimer is a good candidate for that and if you are talking about 5 seconds span, you would use minimal resources. You can use the Paragraph.SetScrollPos for that, scrolling down (or up, or around) your paragraph.

Yossi

rhosk
11-05-2005, 11:29 AM
Perfect! That's why I like coming to this place :yes

Thanks for the ideas, both of you.