skinning a ScrollPanel

1 view
Skip to first unread message

wayne

unread,
Jan 22, 2010, 12:20:03 AM1/22/10
to bumpslide
Hi David,

I'm trying to create a ScrollPanel with the following characteristics:

1. Bitmap image (from my Library) as the scroll handle
2. scrollbar behavior: no stretching/resizing of the handle, even as
the scrollrect changes

I found 2 properties that I thought sounded promising, but neither
does the trick:

myInstance.scrollbar.fixedHandleSize
myInstance.scrollbar.scrollTarget


Can you point me in the right direction?

Thanks,
Wayne

tkdave

unread,
Jan 22, 2010, 5:55:48 PM1/22/10
to bumpslide
Make a subclass of Slider (or VSlider) and override either the
drawHandle() method or the handleSize getter which returns the handle
height for Vslider and handle width for hsliders.

fixedHandleSize only applies to sliders that are not scrollbars.
scrollTarget is the IScrollable reference that makes a slider a
scrollbar.

This seems to be a common request, so I really need to just tell it to
use fixedHandleSize for scrollbars, too. There is a reason I haven't
done this. I'm just not sure what it is.

You'll have to excuse me, as I've been deep in Flex 4 for the last 5
months and haven't been giving my own UI framework much attention
lately. That may change soon, however, as Flex is a tad slow in the
runtime performance department.

-dk

Wayne Fidler

unread,
Jan 25, 2010, 4:58:49 PM1/25/10
to bump...@googlegroups.com
David, thanks so much for the tips. I'll have a chance to try this out today or tomorrow, as usual I appreciate the help.

~wayne

> --
> --
> Bumpslide Mailing List
> http://groups.google.com/group/bumpslide
>
> To post to this group, send email to bump...@googlegroups.com
> To unsubscribe from this group, send email to
> bumpslide+...@googlegroups.com

----------------------------- - - - - - - - - - -
wayne fidler, media mongrel
971.404.9175
http://www.moonpatrol.com
----------------------------- - - - - - - - - - -


Wayne Fidler

unread,
Jan 25, 2010, 8:52:09 PM1/25/10
to bump...@googlegroups.com
David your advice worked perfectly. Thanks so much for the help.

~wayne

Reply all
Reply to author
Forward
0 new messages