Hi Mike,
don't declare new vars inside with().
Usual Way:
yourMother.setDisplay(true);
yourMother.setHeight("auto");
yourMother.setColor("blue");
yourMother.setOverflow("hidden");
with() Way:
with(yourMother)
{
setDisplay(true);
setHeight("auto");
setColor("blue");
setOverflow("hidden");
}
Thats all whats with() is about. But as Sebastion already said, don't use it
=).
[EMAIL PROTECTED] wrote:
>
> Hi folks,
> I'm working on an interesting system, but I can't figure out what I'm
> doing wrong. I'm trying to use nested with statements (maybe that's
> my problem). The following code doesn't yield a toolbar like I think
> it should. Please help!
>
> var doc = qx.ui.core.ClientDocument.getInstance();
> var flow = new qx.ui.layout.FlowLayout;
> doc.add(flow);
>
> with(flow) {
>
>
> // Create the Main Menu
> var main = new qx.ui.layout.VerticalBoxLayout;
> main.setPadding(10);
> with(main) {
>
> // Create the Toolbar
> var mb1 = new qx.ui.toolbar.ToolBar;
> with(mb1) {
>
>
> // File Menu
> var menuFileLogin = new qx.ui.menu.MenuButton("Log in as
> Another User", "/lib/qooxdoo/resource/icon/crystalsvg/16/reload.png");
> var menuFileExit = new qx.ui.menu.MenuButton("Exit",
> "/lib/qooxdoo/resource/icon/crystalsvg/16/stop.png");
>
> var menuFileMenu = new qx.ui.menu.Menu;
> menuFileMenu.add( menuFileLogin, menuFileExit);
>
> var menuFile = new qx.ui.toolbar.ToolBarMenuButton("File",
> menuFileMenu);
> add(menuFileMenu);
>
> };
> add(mb1);
> doc.add(mb1);
>
> };
> add(main);
> doc.add(main);
>
> };
>
>
> What am I doing wrong?
> TIA
> Mike
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
--
View this message in context:
http://www.nabble.com/JS-guru%27s----Help%21-Trying-to-use-with%28...%29-and-qooxdoo-tf2223573.html#a6166626
Sent from the qooxdoo-devel forum at Nabble.com.
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel