summaryrefslogtreecommitdiff
path: root/swat.obsolete/apps/qooxdoo-examples/test/Builder_3.xml
blob: b5fd8b331cf63abab18c9a7de76d2690091fa05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<qx.client.builder.Container>
   <qx.ui.menu.Menu id='m2'>
    <qx.ui.menu.MenuButton label='New Window'/>
    <qx.ui.menu.MenuButton label='Overlapping'/>
    <qx.ui.menu.MenuButton label='Split Vertical'/>
    <qx.ui.menu.MenuButton label='Split Horizontal'/>
    <qx.ui.menu.MenuButton label='Next Window'/>
    <qx.ui.menu.MenuButton label='Previous Window'/>
  </qx.ui.menu.Menu>

  <qx.ui.menu.Menu id='m1'>
    <qx.ui.menu.MenuButton label='View/Lists'/>
    <qx.ui.menu.MenuButton label='Syntax Highlighting'/>
    <qx.ui.menu.MenuSeparator/>
    <qx.ui.menu.MenuButton label='Window Font'/>
    <qx.ui.menu.MenuButton label='Printer Font' menu='m2'/>
  </qx.ui.menu.Menu>
    
  <qx.ui.form.Button id='btn' label='Reference Property' location='20,48'>
    <qx.client.builder.EventListener type='click' args='e'>
      var el = this.getElement();
      m1.setLeft(qx.dom.DomLocation.getPageBoxLeft(el));
      m1.setTop(qx.dom.DomLocation.getPageBoxBottom(el));      ;
      m1.show();
      e.setPropagationStopped(true);
    </qx.client.builder.EventListener>
    <qx.client.builder.EventListener type='mousedown' args='e'>
      e.setPropagationStopped(true);
    </qx.client.builder.EventListener>  
  </qx.ui.form.Button>
  
  <qx.ui.basic.Atom label='Comma Delimited Property &amp; Eval Property ' location='140,48' backgroundColor='#BDD2EF' dimension='220,220' border='qx.renderer.border.Border.presets.outset'/>
</qx.client.builder.Container>