On 17 July 2014 12:48, Tom Chiverton <t...@extravision.com> wrote:

> On 17/07/14 12:43, DarkStone wrote:
> > But after all, this is just my own opinion, others may disagree with me.
> I don't see any other way to achieve changes in behaviour in a base
> class extended by some many other ones ?
>
> I suppose I'd just have an 'enable helper' I could call in my app that
> would walk the display list and set children based on their parents. You
> could hook it to the global 'add' event and it'd be automatic?
>

it won't work because if parent has mouseChildren = false, even if you set
mouseEnabled on children, the app won't react.
A helper won't be able to override the default behavior because the
skinnableComponent behaviors always check "enabled" an prevent changing
mouseEnabled/mouseChildren.
Also, crawling the full displaylist clearly doesn't seem like the right way
to do anything.

-- 

João Fernandes

Reply via email to