Hello,

i try now something . This is the actual version but now i get an error  
at this line

mb.Application.containerMain.add(containerLayout);

chil.getparent is not afunction

i dont know what i  should do. i try and try 2 days:(

the full code


/* ************************************************************************

    Task: Main Start Class
    Copyright: 2009 Stefan Miefert
    Right to Distribute: Thomas Bouflee
    License: Commercial
    Authors: Stefan Miefert

************************************************************************ */


/* ************************************************************************

#asset(mb/*)
#asset(mb/system/*)
#asset(mb/modules/*)
#asset(mb/modules/home/*)

************************************************************************ */



/**
 * This is the main application class of your custom application "mb"
 */
qx.Class.define("mb.Application",
    {
      extend : qx.application.Standalone,
    statics :
        {
        containerMain: "",
        containerTop: "",
        containerMiddle: "",
        containerBottom: "",
        classSystemModules: "" 
        },

    members :
        {
        /**
        * This method contains the initial application code and gets called
        * during startup of the application
        *
        * @lint ignoreDeprecated(alert)
        */
        main : function()
            {
              // Call super class
              this.base(arguments);

            // Enable logging in debug variant
            if (qx.core.Variant.isSet("qx.debug", "on"))
                {
                qx.log.appender.Native; // support native logging 
capabilities, e.g. Firebug for Firefox   
                qx.log.appender.Console;// support additional 
cross-browser console. Press F7 to toggle visibility
                }

            /*
            
-------------------------------------------------------------------------
            Application code...
            
-------------------------------------------------------------------------
            */
            // Main  Container.
            mb.Application.containerMain = new 
qx.ui.container.Composite(new qx.ui.layout.Grow());

            // Main add to root
            this.getRoot().add(mb.Application.containerMain, {edge: 0});

            // Main Container Layout Object
            var layout_dock = new qx.ui.layout.Dock();
            layout_dock.setSort("y");
   
            var containerLayout = new 
qx.ui.container.Composite(layout_dock).set(
                {
                allowGrowX : true,
                allowGrowY : true
                });

           
            var top_dock = new qx.ui.layout.Dock();
            mb.Application.containerTop = new 
qx.ui.container.Composite(top_dock).set({
               height: 30
               });

            var middle_dock = new qx.ui.layout.Dock();
            mb.Application.containerMiddle = new 
qx.ui.container.Composite(middle_dock);

            var bottom_dock = new qx.ui.layout.Dock();
            layout_dock.setSort("y");
            this.containerBottom = new 
qx.ui.container.Composite(bottom_dock).set({
               height: 20
               });
           
            // Add Menu
            var classMainMenu = new mb.system.MainMenu;
            mb.Application.containerTop.add(classMainMenu.getMainMenuBar());
           
            // All together
            containerLayout.add(mb.Application.containerTop, 
{edge:"north"});
            containerLayout.add(mb.Application.containerMiddle, 
{edge:"center"});
            containerLayout.add(mb.Application.containerBottom, 
{edge:"south"});
            mb.Application.containerMain.add(containerLayout);

            // LoadStartseite
            mb.Application.classSystemModules = new mb.system.Modules;
            mb.Application.classSystemModules.getStartseite();
            }
          }
    });

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to