RE: Add Beads

2020-06-15 Thread Maria Jose Esteve
Okay, well I'll do it then. Hiedra. De: Harbs Enviado el: lunes, 15 de junio de 2020 17:42 Para: users@royale.apache.org Asunto: Re: Add Beads Cool. There might be beads which assume beadsAdded is only dispatched once, so Yishay’s solution is probably better. On Jun 15, 2020, at 6:20 PM,

Re: Add Beads

2020-06-15 Thread Harbs
Cool. There might be beads which assume beadsAdded is only dispatched once, so Yishay’s solution is probably better. > On Jun 15, 2020, at 6:20 PM, Maria Jose Esteve wrote: > > Harbs, also works: > > > override public function addedToParent():void > { > >

RE: Add Beads

2020-06-15 Thread Maria Jose Esteve
Harbs, also works: override public function addedToParent():void { super.addedToParent(); var localdisabledBead:ComboBoxDisabled = getBeadByType(ComboBoxDisabled) as ComboBoxDisabled; if (localdisabledBead == null) {

Re: Add Beads

2020-06-15 Thread Harbs
Since the beadsAdded event is fired after super.addedToParent, you’ll need to add your bead before super or dispatch beadsAdded a second time (probably not a great idea). Try Yishay’s suggestion of adding the bead before the super call. > On Jun 15, 2020, at 4:03 PM, Maria Jose Esteve wrote:

RE: Add Beads

2020-06-15 Thread Yishay Weiss
Hi Hiedra, I see nothing wrong. In what sense does it not work for you? Did you try putting a breakpoint in the “set strand” method of ComboBoxTextPrompt? From: Maria Jose Esteve Sent: Monday, June 15, 2020 3:04 PM To:

RE: Add Beads

2020-06-15 Thread Maria Jose Esteve
Hi Harbs, thanks for replying. The specific case is an extension of the ComboBox control to which I want to add the default prompt. Currently I have added it in addToParent but it doesn't work for me, although with debug, I see that it does add it and configure it correctly. See something

Re: Add Beads

2020-06-15 Thread Harbs
Good question. :-) It depends on the type of bead. Any beads that are added using MXML will be added in the addeToParent method. The reason for this is because many beads need the component to be added to the DOM. If it’s a bead which does not need the DOM structure to be set up, you can

Add Beads

2020-06-15 Thread Maria Jose Esteve
Hello, I am extending a component and need to add a default bead to it. (This is a jewel control but I imagine it will be similar in basic or mx) I have seen in the SDK code that there is no "fixed point" where to add it: in some controls they are added in the same constructor, in others they