Awesome! Thanks so much for your help. I haven't run this code yet, but I
appreciate it.
-deech
On Mon, Jun 15, 2009 at 10:36 AM, Fink, Andreas <[email protected]>wrote:
> Hi,
>
> I've implemented the functionality by myself like this:
>
> every window (I create windows from a xml description) has a button which
> can be accessed with a getter, like this:
>
> this.__tlButton = new qx.ui.toolbar.Button(repName,
> "icon/16/apps/office-spreadsheet.png");
> this.__tlButton.setUserData("win", this);
> this.__tlButton.addListener("execute", function(e) {
> if (this.getMode() === "minimized") {
> this.setVisibility("visible");
> }
> this.bringToFront();
> }, this);
>
> I add the button to a toolbar part with a context menu:
>
> var contextMenu = new qx.ui.menu.Menu(); var restoreButton = new
> qx.ui.menu.Button(this.tr("Restore"), "image/restore.png");
> contextMenu.add(restoreButton); restoreButton.addListener("execute",
> function(e) {
> var win = this.getLayoutParent().getOpener().getUserData("win");
> win.restore();
> win.bringToFront();
> });
> var minButton = new qx.ui.menu.Button(this.tr("Minimize"),
> "image/minimize.png"); contextMenu.add(minButton);
> minButton.addListener("execute", function(e) {
> var win = this.getLayoutParent().getOpener().getUserData("win");
> win.minimize();
> });
> var maxButton = new qx.ui.menu.Button(this.tr("Maximize"),
> "image/maximize.png"); contextMenu.add(maxButton);
> maxButton.addListener("execute", function(e) {
> var win = this.getLayoutParent().getOpener().getUserData("win");
> if (win.getMode() === "minimized") {
> win.setVisibility("visible");
> }
> win.maximize();
> win.bringToFront();
> });
> contextMenu.addSeparator();
> var closeButton = new qx.ui.menu.Button(this.tr("Close"),
> "image/close.png"); contextMenu.add(closeButton);
> closeButton.addListener("execute", function(e) {
> this.getLayoutParent().getOpener().getUserData("win").close();
> });
>
> this.__widgets["tl"] = new qx.ui.toolbar.Part();
> toolbar.add(this.__widgets["tl"]);
>
> this.__widgets["tl"].addListener("contextmenu", function(e) {
> var target = e.getTarget();
> var win = target.getUserData("win");
> if (win !== null) { //only if really a buttons was right clicked
> contextMenu.setOpener(target);
> contextMenu.open();
> }
> }, this);
>
> In my app every window gets destroyed when it is closed, so I added the
> following code to the destruct section to remove the button from the
> "taskbar":
>
> destruct : function() {
> if (this.__tlButton.getLayoutParent()) {
> this.__tlButton.getLayoutParent().remove(this.__tlButton);
> }
> //disposes removed for mail
> }
>
> Hope the code snippets helps you to get your own "taskbar" implemented. It
> works really perfect in my app (screenshot attached).
>
> Greetings,
> Andreas
>
>
> Von: aditya siram [mailto:[email protected]]
> Gesendet: Montag, 15. Juni 2009 16:31
> An: qooxdoo Development
> Betreff: Re: [qooxdoo-devel] Where do minimized windows go?
>
> Is there anyway for a user to access the window once it is minimized?
>
> thanks ...
> -deech
> On Mon, Jun 15, 2009 at 8:43 AM, Christian Schmidt <
> [email protected]> wrote:
> Hi Deech,
>
> yes, that's the behavior. The minimize() method only hides the window.
> Your expected behavior is at the moment not implemented. But there is a bug
> report for this feature [1], you can add you to CC if you will be informed
> about the status.
>
> Cheers,
> Chris
>
> [1] http://bugzilla.qooxdoo.org/show_bug.cgi?id=1770
>
> aditya siram schrieb:
> > Hi all,
> > I was playing with the 'Window' demo and minimizing the window causes
> > it to disappear completely. Is this the desired behavior? I would have
> > expected it to become an icon or something.
> >
> > thanks ...
> > -deech
> > ----------------------------------------------------------------------
> > --
> >
> > ----------------------------------------------------------------------
> > -------- Crystal Reports - New Free Runtime and 30 Day Trial Check out
> > the new simplified licensing option that enables unlimited
> > royalty-free distribution of the report engine for externally facing
> > server and web deployment.
> > http://p.sf.net/sfu/businessobjects
> > ----------------------------------------------------------------------
> > --
> >
> > _______________________________________________
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
>
> --
> Christian Schmidt
> Software Entwickler
>
> 1&1 Internet AG - Web Technologies
> Ernst-Frey-Straße 9 · DE-76135 Karlsruhe [email protected]
>
> Amtsgericht Montabaur / HRB 6484
> Vorstände: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas
> Gottschlich, Robert Hoffmann, Markus Huhn, Hans-Henning Kettler, Dr. Oliver
> Mauss, Jan Oetjen
> Aufsichtsratsvorsitzender: Michael Scheeren
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial Check out the new
> simplified licensing option that enables unlimited royalty-free distribution
> of the report engine for externally facing server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel