Increase the Width of the ScrollBar

115 views
Skip to first unread message

Rashmi N

unread,
Apr 23, 2007, 4:19:14 AM4/23/07
to flex_...@googlegroups.com
Hi All,

I am back again.. :-)

Can anyone tell me how to increase the width and height of the default ScrollBar?
Is it possible at all?

Thanks in advance
--
Regards,
Rashmi

mrinal wadhwa

unread,
Apr 23, 2007, 4:37:01 AM4/23/07
to flex_...@googlegroups.com
You would have to create a new skin for your scrollbar. There are many ways to create custom skins .. but the graphical way is my favorite , You can know more about graphical skinning here http://www.adobe.com/devnet/flex/articles/flex_skins.html

Mrinal

Manish Jethani

unread,
Apr 23, 2007, 6:41:34 PM4/23/07
to flex_...@googlegroups.com
You know, the ScrollBar class makes it extremely hard to do it. It's
setting the _minWidth property in its measure() and there's no way to
override that.

If you're really determined to do this, you can extend the
HScrollBar/VScrollBar class and override the measure() method there.
Then, in the "updateComplete" event of the container, set the
horizontalScrollBar/verticalScrollBar property to an instance of your
own scroll bar class -- with all the properties set; then call
invalidateDisplayList() on the container. You'll have to learn a fair
deal about how the Flex scrollbar works before you get this right.
Give it a try.

On 4/23/07, Rashmi N <rashmi....@gmail.com> wrote:

Rashmi N

unread,
Apr 24, 2007, 3:39:44 AM4/24/07
to flex_...@googlegroups.com
Thanks a lot Manish. I will try this.

Regards,
Rashmi
--
Regards,
Rashmi
Reply all
Reply to author
Forward
0 new messages