Hi all.

On Wed, 12 Feb 2014, Peter Caffin wrote:
> I've resolved the issue though, so all's well, and I'll write it up for
> posting here shortly.

Essentially, as we can't directly "grid forget" a la Tk, the next best 
option is to re-assign the containers to another location. In this 
case, a minimised Window.

   // Hidden Widget
   Hidden = new qx.ui.window.Window("If you can see this, it's a bug");
   Hidden.setLayout(new qx.ui.layout.VBox(10));
   Hidden.minimize();
   this.getRoot().add(Hidden);

The listbox has a listener added that:

(1) Checks what's been chosen:

   lang = LB3000.getSelection()[0].getLabel();

(2) Calls function __testSetActivateLang(lang).


Our __testSetActivateLang does three things:

(a) Add the widgets presently in the grid to the hidden window:

   Hidden.add(box3_1[ACTIVELANG]);
   Hidden.add(box3_2[ACTIVELANG]);

(b) Now that those grid locations are vacated, we can move the new 
ones in:

   page3.add(box3_1[lang],{row:0,column:1});
   page3.add(box3_2[lang],{row:1,column:1,rowSpan:10});

(c) The chosen lang is now the active one:

   ACTIVELANG = lang;

That's really about all there is to it.

While my web app is a while away from being ready to show off, here's 
a small sized (1.6M) video of the selector in action:

http://pc.autons.net/stuff/Listbox-Page-Selection-video.m4v

Is it worth the effort? Well, I think the result looks quite nice and 
quite intuitive for the end-user -- especially for the number of 
"pages" that may potentially be under its control.

Thanks all.

Also, special thanks to everyone involved in developing Qooxdoo.

For many many years I'd been putting off learning Javascript because 
of its "write once, rewrite everywhere" early days, and jQuery never 
grabbed me -- it seemed like a bucket full of oddly shaped widgets, 
needing lots of customisation to look like they belonged together.

Qooxdoo Desktop gives me the same sort of control over a UI that I'm 
used to when I develop Tk desktop apps, in a consistent set of themes, 
also like what I'm used to with Tk. I really never expected that from 
Javascript :)


------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to