Another way to do it is;
if (myContainer.verticalScrollBar)
{
trace("we have v scoll");
}
else
{
trace("no v scroll bars");
}
You can do the same with horizontalScrollBar. These are public properties, so it is not an event that is saying we are creating them but, you will always know through composite if you have them.
On another note, you can listen for the "viewChanged" event of the container. This will tel you when the vertical or horizontal scroll position has changed. Every time a scroll bar is created, the scroll position is set, which will broadcast this event. Then you can use the check above to test which scroll bar came into existence.
Peace, Mike
Daniel
This kind of request is simple, just use the hipotetical situation where you seted a container with the size of 400x300 and inside this container you added a component like panel as 500x600, what's gonna happen? the scroll will automaticly add the scroll.
So, isn't goo enough but if you want to just see more details? just check out the liveDocs here below:
http://livedocs.macromedia.com/flex/2/langref/mx/controls/scrollClasses/package-detail.html
Regards.On 11/2/06, Daniel Cascais < [EMAIL PROTECTED]> wrote: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
--
----------------------------
Igor Costa
www.igorcosta.com
--
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
__,_._,___
- Re: [flexcoders] Detect scrollbar showing/not showing Daniel Cascais
- Re: [flexcoders] Detect scrollbar showing/not showin... Michael Schmalle
- Re: [flexcoders] Detect scrollbar showing/not showin... Michael Schmalle
- RE: [flexcoders] Detect scrollbar showing/not showin... Karl Johnson
- Re: [flexcoders] Detect scrollbar showing/not sh... Daniel Cascais
- Re: [flexcoders] Detect scrollbar showing/no... Michael Schmalle
- Re: [flexcoders] Detect scrollbar showin... Daniel Cascais
Reply via email to

