Skip to main content
Participant
May 29, 2007
Question

ScrollPane source content

  • May 29, 2007
  • 2 replies
  • 310 views
I have a couple of different sprites with text inputs and text fields placed inside of them
and I have a scrollpane that I use to display the the different sprites.
the first time I set the source of the scrollpane to oone of the sprites it works fine, but when I set the source
of the scrollpane back to the sprite the size of the sprite is slightly smaller so now part of it is cut of.
This topic has been closed for replies.

2 replies

Known Participant
May 29, 2007
Not sure about disabling those keys.

I think the invalidate() will redraw the scroll bar based on the size of the clip.

scroll_pane.invalidate();

or it might refresh but I think it was invalidate.
Participant
May 29, 2007
Ive got another question about scrollpanes.
The home and end keys inside a scrollpane scroll the pane to the top
and bottom and since I have text inputs inside the pane I would like to disable the
home and end keys so that they only move the cursor inside a text input.