On Wed, 20 Oct 2010, omrihar wrote:

> Hello all,
>
> First of all I'd like to say that I'm now writing my first program with
> qooxdoo and I'm finding the experience very pleasant! I really enjoy it and
> it allows me to do things really fast and really the way I would program a
> desktop application :)

Welcome to the exiting world of Qooxdoo!

> My question is the following :
> I'm building a window that basically contains a form (I'm handling the
> posting through RPC but it's irrelevant).
> According to the value of a SelectBox, some fields show be displayed and
> some not.
> I'm planning to implement it currently using a Stack which changes panes
> according to the value of that select box but I have one problem - sometimes
> I need to use the same widget in two different panes.
> When I tried to do this it only showed the widget in the pane it was last
> added to so I conclude this is impossible.

As in the real world, an object can only exist at one point in the
space/time continuum (except in Science Fiction, I guess).

> Another solution would have been to be able to simply hide rows from a grid
> layout and then only show the ones I need. Since there is no hide option for
> the rows themselves, I tried to implement it by removing all the widgets
> from a row, but then the grid didn't shrink to hide the place of that row.
> I also tried to change the height of a row to 0, but then the layout didn't
> shrink properly (it shrank too much).

Try exclude() instead of hide() ... never tried it with a grid layout, so I
am not sure, if it will adjust the height of the row.

Cheers,
Fritz

-- 
Oetiker+Partner AG              tel: +41 62 775 9903 (direct)
Fritz Zaucker                        +41 62 775 9900 (switch board)
Aarweg 15                            +41 79 675 0630 (mobile)
CH-4600 Olten                   fax: +41 62 775 9905
Schweiz                         web: www.oetiker.ch

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to