The first thing I did was make it so the selection saved the surface
before it highlighted the box; then, the next time the cursor moved,
it simply redrew the old surface (which didn't have the highlight) and
drew the next one.
Yes, this is something like what Thomas mentioned in his post about having another larger surface that you use to scroll. It was actually Thomas who gave me the idea to make a RegionScroller class.
I have some stuff in src/gui that may be of help. Please take a look at RegionScroller.py, ListBox.py, OptionBox.py and their demos scrolldemo.py, listboxdemo.py, and optiondemo.py (I am doing a bit of a code cleanup here so do n't be surprised if some of it is messy!). In order to see the demos just go into WIP/RobShortt and make uitest which will copy over your exitsting audioitem.py. Then just to 'play' an mp3 to get a popup. There are a bunch of lines in the play function that you can comment / uncomment to see various popups.
RegionScroller.py and ListBox.py both scroll on other larger surfaces. ListBox is only meant to scroll items up/down but I could fix it for left/right items as well. Also I think that the way I redraw every time it scrolls (for the item highlighting) is ineficient and I plan on doing some work on that aspect as well.
1. If you save the row's one by one, you can scroll up and down, but if you move half and hour right, you need to redraw everything.
We might be able to use ListBox go scroll both ways.
2. If you save 30 minute blocks, it'll be a mess to draw the selected areas back in.
I was / am having similar problems with ListBox but I am sure we can come up with something, I have a few ideas.
-Rob
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Freevo-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/freevo-devel
