Yep, that's a good thought... thanks.

Now that my issue is solved, I would ljust like to comment that this
is something that IMO should have been included in the framework. For
example: Event.ScrollbarAdded, or something.

Thanks again guys,
Daniel

On 11/3/06, Michael Schmalle <[EMAIL PROTECTED]> wrote:
>
>    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'.  



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


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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to