Mike Crowe schrieb:
> FWIW, the error I'm getting is:
> qx.core.Init.getInstance().getComponent() has no properties.

Please be sure to wait of the "load" event. You must have your code 
inside your application definition (by setApplication(yourClass) or 
inside qx.core.Init.getInstance().defineMain())

Hope this helps.

Cheers,

Sebastian

> 
> On 9/5/06, Mike Crowe <[EMAIL PROTECTED]> wrote:
>> Hi folks,
>>
>> I really haven't studied this enough, so any pointers would be appreciated.
>>
>> Looking at the AtAGlance.js file, I'm trying to understand how and
>> where to add my objects.  For instance, in the "createToolbarDemo
>> routine, here's what happens:
>>
>> Menubar Example:
>> Individual MenuButtons added to Menu object
>> Menu objects added to Document object
>> Toolbar created and (linked?) to Menu objects
>> ToolBarMenuButton created and added to Toolbar object
>> Toolbar added to VerticalBoxLayout object
>>
>> That is for the main menu.  Now, a separate toolbar is created:
>>
>> Toolbar Example:
>> Toolbar created and added to VerticalBoxLayout object
>> (lots of other controls added to Toolbar)
>> HorizontalBoxLayout created and added to VerticalBoxLayout
>> New VerticalBoxLayout2 created and added to HorizontalBoxLayout
>> (lots of controls and more layouts added to these)
>>
>> Can somebody please give me the 30,000' view of what's going on?
>> In Menubar, why do the Menu items need to be added to the Document?
>> Where "must" we add the components to insure they are included?
>>
>> I took Sebastian's advice, and removed all my "with" statements.
>> Here's where I am now, and it still doesn't work.
>>
>> TIA
>> Mike
>>
>> var doc = qx.ui.core.ClientDocument.getInstance();
>> var flow = new qx.ui.layout.FlowLayout;
>>
>> flow.setTop(0);
>> flow.setLeft(0);
>> flow.setWidth("100%");
>> flow.setHeight("100%");
>>
>>
>>     // Create the Main Menu
>>     var main = new qx.ui.layout.VerticalBoxLayout;
>>     main.setPadding(10);
>>
>>         // Create the Toolbar
>>         var toolBar = new qx.ui.toolbar.ToolBar;
>>
>>
>>             // 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);
>>             doc.add(menuFileMenu);
>>
>>             var menuFile = new qx.ui.toolbar.ToolBarMenuButton("File",
>> menuFileMenu);
>>
>>             toolBar.add(menuFileMenu);
>>
>>         main.add(toolBar);
>>
>>     doc.add(main);
>>
>> doc.add(flow);
>>
> 
> -------------------------------------------------------------------------
> 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


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

Reply via email to