Matt,

thanks for this hint. I test it today.

I have to wait for all atoms because "next task" reads position of them.

Karol


Matthew Gregory wrote:
> 
> It might help if you explain a little what "next task" is, and also why 
> these atoms are added in random order.
> 
> If you know how many atoms are added, and you want to wait until they 
> are all onscreen you could use the appear event and a counter.
> 
> var count = 0;
> eachAtom.addListener("appear", function()
> {
>    if (++count == numberOfAtoms)
>    {
>      this.nextTask();
>    }
> }, this);
> 
> As I said, if you give more detail we might be able to help more :)
> 
> Matt
> 
> Grykar wrote:
>> Hi
>> 
>> I am adding a few atoms to layout. After all atoms were added I would
>> like
>> to start "next task".
>> The atoms are added in random order therefore I don't know which one is
>> last. It cannot be solved by add appear event to each atom due to "next
>> task" should be start only one time and all atoms should be visible. 
>> 
>> 
>> My question is how to trigger "next task" when all atoms appear on layout
>> ?
>> 
>> 
>> 
>> Thanks,
>>   Karol
> 
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day 
> trial. Simplify your report design, integration and deployment - and focus
> on 
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> qooxdoo-devel mailing list
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 
> 

-- 
View this message in context: 
http://old.nabble.com/adding-atoms-to-layout-tp26194466p26195961.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to