ScrollBar
From TrillWiki
When adding a scrollbar into your trillian skin, it is comprised of three parts. The first two are simple button controls, one to make the scrollbar go up, one to make it go down. The final component is the actual bar.
- <control name="<name>" type="scrollbar">
- </control>
Simple enough, the definition of the scrollbar. All the next bits go in between these tags.
- <background name="background">
- </background>
This is the actual background of the scrollbar. When the bar is at it's smallest this is what will replace it (see diagram at bottom)
- <background name="top_thumb_flat">
- <source name="<bitmap name>" left="" right="" top="" bottom=""/>
- ▭
- </background>
- <background name="mid_thumb_flat">
- <source name="<bitmap name>" left="" right="" top="" bottom=""/>
- ▭
- </background>
- <background name="bot_thumb_flat">
- <source name="<bitmap name>" left="" right="" top="" bottom=""/>
- ▭
- </background>
The sections of the actual bar. top_thumb is the top section of the bar, bot_thumb being the bottom. mid_thumb is the bit of the bar that resizes vertically, depending on the amount of stuff in the window. You will need _over and _push, as well as _flat, for the three states of the bar. (As of 3.0, _over works.) The ▭ refers to the standard (0,0,0,0) rect code, that I have referenced in another file, of course you can just add in the code each time, but it seems wasteful.

