At heart, this is a simple panel control that allows you to fix its width and height. Its really
simple, you just treat it like a Panel, give it a width and height, and if the content is too big
for that region, scroll bars appear.
Borders are shown on all these ScrollablePanels just to show you whats going on - theyre not a
requirement for the control.
This is a scrollable panel with no width or height specified - just a regular panel.
This sample has both width and height specified, but since the content still fits within the region,
scroll bars are unnecessary.
This is a simple 100x100 scrollable panel.
Again, this sample has width and height specified, but this time there is too much content within the
region so a scroll bar appears on the right of the panel to allow the user to see all the content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
Lots of content.
This time the content is too wide for the region, so a vertical scroll bar appears.
ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
And finally, this example is derived from the W3Cs overflow example:
I didn't like the play, but then I saw
it under adverse conditions - the curtain was up.
- Groucho Marx
|