Add things to rawChildren and setStyles on contentPane.

What do you mean by this?

If you are creating a composite child, there will be no contentPane created
if you resize it in the raw children's list.

I would love to see your implementation of 2 or 3 methods, do you override
numChildren also?

Peace, Mike


On 4/27/07, Paul J DeCoursey <[EMAIL PROTECTED]> wrote:

  I'm sorry, but it's not tricky or cumbersome... there are like 2 maybe 3

functions to override. It's very easy to do. Really what Claudia will
want to do is use the built in code in Container. Add things to
rawChildren and setStyles on contentPane.

Paul


Manish Jethani wrote:
> You'll have to override the whole child management API.
> mx.core.Container already does this for the case where it has
> scrollbars. See the internal contentPane property and how it's
> implemented. It's tricky and cumbersome.
>
> On 4/27/07, Claudia Barnal <[EMAIL PROTECTED] <barnaclau%40gmail.com>>
wrote:
>
>> Hi,
>>
>> What would I have to do to make the child of a Panel be the recipient
>> of any children added to that Panel, like below?
>>
>> For example, below if my custom container creates another container
>> (let's call it the xxx container) in the createChildren() method, how
>> can I make sure any children added to the parent container are added
>> to the xxx container?
>>
>> I guess I have to override the actual addChild() method, to bypass the
>> normal flow and adding the newly added children to the xxx container,
>> but how would that work out?
>>
>> <blah:CustomContainer>
>> <mx:HBox>
>> </mx:HBox>
>> <blah:CustomContainer>
>>
>> Any comments or ideas?
>>
>> Thanks,
>> Claudia
>>
>>
>>
>> Yahoo! Groups Links
>>
>>
>>
>>
>>
>
>




--
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'.

Reply via email to