Hi,

A thought;

If you used the ADDED event, in a handler once the scroll bar was created or destroyed, you could then dispatch an event to another handler that would then commit the logic you needed for existence changes in your tile layout.

Then again I don't know exactly what you are doing.

This way you could remove the logic from your layout.

Peace, Mike

On 11/3/06, Daniel Cascais <[EMAIL PROTECTED]> wrote:

Michael, Karl,

Thanks for your inputs.

I'm doing some dynamic tile layout and sizing which requires me to set
different params depending on the scrollbar availability and tile
count.

I also thought about the Event.RENDER but it seemed overkill.

I'll look into the different options, but I'll probably end up
checking for the existence of the scrollbar in each iteration of a
loop (where I size and position the tiles) and break if the conditions
change, recalling the method with new parameters... or something like
that.

Thanks guys,
Daniel

On 11/3/06, Karl Johnson <[EMAIL PROTECTED]> wrote:
>
>
> There are probably multiple ways to do this, but what about checking to see if myContainer.verticalScrollBar == null?
> Are you looking to do this at render time or is this something where the scroll bar could show at anytime after creationComplete and you need to be able to react immediately?
>
> According to the API Doc:
>
>
> verticalScrollBar property
> verticalScrollBar:ScrollBar [read-write]
>
> The vertical scrollbar used in this container. This property is null if no vertical scroll bar is currently displayed.
>
> |<
>
> Karl Johnson
>
> Cynergy Systems
>
> ________________________________
From: [email protected]
[mailto:[email protected]] On Behalf Of Daniel Cascais
> Sent: Thursday, November 02, 2006 10:00 PM
> To: [email protected]
> Subject: [flexcoders] Detect scrollbar showing/not showing
>
>
>
>
>
> Is there any known event that is dispatched when the scrollbar is
> showing/not showing in a container, when the scroll policy is set to
> auto?
>
> In other words: How can I know when a container's srollbar is showing
> or not showing? (Apart from looking at the screen of course).
>
> Thanks,
> Daniel
>

--
Daniel Cascais
Tel: +56 (0)2 4589495
Cel: +56 (0)9 9417355




--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'. __._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to