Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
New Contributor
Nikesh
Posts: 2
Registered: ‎06-01-2011
My Carrier: developer

ScrollPane Error

Hi there ,,

 

 

I have three ScrollPane (two horizontal scrollable and one vertical) They all are working fine if they are separated but when I put two horizontal ScrollPane into 3rd one (that vertical one), then they are not working properly.

 

So I just wanted to know , is it possible to use ScrollPane within another ScrollPane.? If so .Please let me know how to do that ..

 

Thanks in advance

Please use plain text.
Developer
jtegen
Posts: 6,536
Registered: ‎10-27-2010
My Carrier: Verizon

Re: ScrollPane Error

Yes, but when one has focus, the parent one has to be locked down by setting the scroll direction to none. If the parent one has focus, the child ones have to be locked down.
Please use plain text.
New Contributor
Nikesh
Posts: 2
Registered: ‎06-01-2011
My Carrier: developer

Re: ScrollPane Error

Thanks for your reply ... but there is one condition when both parent and child are in focus , it happens when I Scroll the child ScrollPane...

 

so in simple word .. how to check Child ScrollPane in focus ??

Please use plain text.
Developer
jtegen
Posts: 6,536
Registered: ‎10-27-2010
My Carrier: Verizon

Re: ScrollPane Error

You can trap a mouse down event or focus event change. In the child object, keep a reference to the parent scroll and lock it down in one of these events. On mouse up or focus out event, reset the parent scroll directions.
Please use plain text.