You could also blit to a surface and then move the source rect of the
surface up or down corresponding to the position of the scroll bar and blit
it in a frame .聽 If you want the items to be selectable, perhaps via mouse,
you could generate an index by checking for collisions of mouse_pos()
against an area determined by an offset of surface position.
On 5/10/06, Phil Hassey <philhassey@xxxxxxxxx> wrote:
>
> Hi,
>
> I think you can do this by adding and removing rows from Tables within a
ScrollBox.
>
> Hope that helps!
> Phil
>
>
> David < dvkeeney@xxxxxxxxx> wrote:
>
> Kris:
> 聽
> Have you looked at Ocemp GUI?聽 It does include a vertically scrolling box
> for text lines.
> 聽
> If you do聽choose to implement such a vertically scrolling box for PGU, I,
for one, 聽would appreciate
> your sharing it with us.聽
> 聽
> David
>
> 聽
> On 5/10/06, Kris Schnee <kschnee@xxxxxxxxxx > wrote:
> > I'm overwhelmed with too many variations on game and other ideas right
> > now, but one recurring theme is that I need a good interface. My
> > homebrew one is ugly.
> >
> > I tried using PGU, but found that something important was missing. I
> > have, and need, a box that contains a vertically-scrollable block of
> > variable text. That is, it displays lines of text (some of which are
> > actually longer than one line) that can be added to or cleared as
> > necessary without replacing the whole widget, and another widget can
> > scroll up or down through the set of lines because it can hold more than
> > it displays at once.
> >
> > Could PGU have such a widget after all?
> >
> > Kris
> >
> >
>
>
>
> --
> dkeeney@xxxxxxxxxxxxxxxx
> Pitcher's Duel -> pitchersduel.python-hosting.com
>
>
>
> ________________________________
New Yahoo! Messenger with Voice. Call regular phones from your PC and save
big.
>
>
--
Andrew Ulysses Baker
"failrate"