I can't seem to get menus to display.  I get a menubar and I can click
the File button but no menu actually displays.  The File menu item then
remains deprested on the MenuBar.  See code for example.  Can someone
tell me if I'm doing something wrong?

<snip>
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; xml:lang="de">
<head>
  <script type="text/javascript">window._htmlstart=(new
Date).valueOf()</script>

  <meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-15" />
  <meta http-equiv="MsThemeCompatible" content="yes" />
  <meta http-equiv="ImageToolBar" content="no" />
  <meta name="MSSmartTagsPreventParsing" content="yes" />
  
  <title>Data Handling 2 @ qooxdoo :: demo [development]</title>
  <link type="text/css" rel="stylesheet"
href="../../style/qooxdoo.css"/>
  <link type="text/css" rel="stylesheet"
href="../../style/demolayout.css"/>

  <script type="text/javascript" src="../../script/qooxdoo.js"></script>
</head>
<body>
  <script type="text/javascript"
src="../../../tools/script/demolayout.js"></script>    
  
  <div id="testDescription">
    <p>Menu problem</p>
  </div>
  
  <script type="text/javascript">
  
  function ui_app_menu(x,y,w,h) {
    /*
      Menu
    */

    var m1 = new QxMenu;

    var mb1_01 = new QxMenuButton("New");
    var mb1_02 = new QxMenuButton("Open");
    var mb1_03 = new QxMenuButton("Save");
    var mb1_04 = new QxMenuButton("Save as");
    var mb1_05 = new QxMenuButton("Close");
    var mb1_06 = new QxMenuButton("Restore last saved");

    m1.add(mb1_01, mb1_02, mb1_03, mb1_04, mb1_05, mb1_06);
    
    var mb = new QxMenuBar;
    var mbbFile = new QxMenuBarButton("File", m1);
    mb.add(mbbFile);
    
    mb.setWidth(w);
    mb.setHeight(h);
    mb.setTop(y);
    mb.setLeft(x);
    
    return mb;
    
    }

  window.application.main = function()
  {
    var d = this.getClientWindow().getClientDocument();
    d.add(ui_app_menu(10, 40,810,"auto"));
    
  };
  </script>
</body>
</html>  

</snip>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to