Am Dienstag 28 Oktober 2008 schrieb Fabian Jakobs:
> Hello Heiko,
>
> you are pretty much a pioneer in this area. We have designed 0.8 with
> multi-document support in mind be we have never tried to actually do it.
Great, I can conquer a little part of the world myself :-)

> > My second idea was opening the window and simply creating a
> > qx.ui.root.Application in this window's document from the main
> > application. Then attach elements to this second root as if it's a normal
> > widget.
>
> This is the way I would try to do it. Just load an empty HTML file into
> the window and once it is loaded attach a qx.ui.root.Application to the
> window's document. Have you actually tried this approach? I would be
> interested in your results.
My little class opens the window (in firefox) and renders a toolbar in it, but 
the button does not recognize mousovers and other events. 
Tomorrow I will try to find the source of this problem.

Thanks for the pointer
Heiko

the Class:
qx.Class.define("kes.qxapp.QxNativeWindow",
{
  extend:qx.core.Object,

  construct : function(windowName)
  {
    this.__nativeWindow = window.open("leer.html", windowName);
    this.__nativeWindow.onload = qx.lang.Function.bind(this._onWindowLoad, 
this);
  },

  members :
  {
    __nativeWindow : null,
    __root : null,

    _onWindowLoad : function()
    {
      this.__root = new qx.ui.root.Application(this.__nativeWindow.document);

    var toolbar = new qx.ui.toolbar.ToolBar();
    var timePart = new qx.ui.toolbar.Part;
    toolbar.add(timePart);

    var timeInfo = new qx.ui.basic.Label().set({content:"<b>Zeitraum:</b> ", 
rich:true, marginLeft:10, marginRight:10, alignY:"middle"});
    timePart.add(timeInfo);

var tBtn = new qx.ui.toolbar.Button("Blubb", "icon/16/actions/application-
exit.png");
timePart.add(tBtn);

    this.getRoot().add(toolbar);
    },

    getRoot : function()
    {
      return this.__root;
    }
  }


});


-- 
Mit freundlichen Grüßen
Heiko Stübner

Nexst4


------------------------------------
Nexst4 - Kesys GmbH
Arndtstrasse 12
01099 Dresden

Tel.: +49 (351) 655 76 70
Fax:  +49 (351) 655 76 66
Mail: [EMAIL PROTECTED]

Geschäftsführer: Alf Thiele
Sitz der Gesellschaft: Dresden
Handelsregister: Amtsgericht Dresden HRB 22605

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