Manish,

Thanks for your suggestion, I tried exending from ScrollControlBase
but still had problems to get the scroll bar to show up.  I think this
has to do with how I set up the custom component.

Basically, I have a custom AS component that draws a bunch of boxes.
This custom component is wrapped in an <mx:customComponent> tag and
used in the rest of the flex app. 

The problem occurs when drawn boxes dimensions exceeds the bounding
mxml file. Which, in normal situation, scrollbars would pop up.  It
was as if the custom component's parent mxml file couldn't properly
register the total dimension of its custom child.

My workaround was to put in a <mx:Vbox width="1"
height="{customBoxHeight}"> and <mx:HBox height="1"
width="{customBoxWidth}> into the custom component's mxml wrapper.

These boxes effectively serves as dimension holders within the wrapper
mxml.  Since these are flex containers, their sizes are correctly seen
by flex.  All that is left to do is to adjust the sizes of these boxes
according to the dimension of the custom component.

Note: {customBoxHeight} and {customBoxWidth} are values from the
custom component.

This solution is quite simple to implement and is quite reliable for
those who run into this problem.

Cheers,

Tim




--- In [email protected], "Manish Jethani"
<[EMAIL PROTECTED]> wrote:
>
> On 4/21/06, sufibaba <[EMAIL PROTECTED]> wrote:
>
> > Does anyone know how to add scroll bar functionality to this
component?
>
> To avoid a lot of work, extend your component from ScrollControlBase
> instead of UIComponent.
>
> Manish
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to