> Specifically, is there any event (or other way to determine) when qooxdoo
> has completed rendering all controls?
>
> Obviously defineFinalize is now deprecated, but is there another approach in
> more current versions of the framework? I had thought this would be a common
> task but was surprised to find very little discussion in the archives.

Hi Dan,

The same concept applies.  In your Application.js file, you'll see
that it (probably) extends qx.application.Standalone.  The
initialization code calls your application's main() method which is
expected, generally, to create the widgets for your application.  It
then calls your application's finalize() method which, by default
causes the queue to be flushed (i.e. render).  Therefore, if you
implement a finalize method in your application class that looks like
this, you should have what you want:

finalize : function()
{
  this.base(arguments);
  this.debug("rendering is now complete and this is where I'll do my
post-rendering stuff");
}

Also, you have two events you can listen on with any widget: "resize"
and "appear".  The former is fired when the dom has been updated but
before it actually appears.  The latter is fired after the dom changes
are visible on the screen.  Although I've never tried it, you should
be able to listen for these events on your application's root widget
which from your application class can be obtained with this.getRoot().

Hope that helps.

Derrell

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to