13693261870
2022-09-16 354b3dbfbffb3df45212a2a44dbbf48b4acc2594
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
Ext.define('Neptune.view.window.Windows', {
    extend: 'Ext.container.Container',
    xtype: 'windows',
    id: 'windows',
 
    layout: {
        type: 'table',
        columns: 4,
        tdAttrs: { style: 'padding: 7px; vertical-align: top;' }
    },
    items: [
        { xtype: 'basicWindow', x: 15, y: 60, width: 300, height: 200 },
        { xtype: 'windowWithButtons', x: 350, y: 60, width: 300, height: 200 },
        { xtype: 'button', text: 'Show a Message Box', handler: function() {
            Ext.Msg.show({
                 title:'Really?',
                 msg: 'Are you sure you want to do that?',
                 buttons: Ext.Msg.YESNOCANCEL,
                 icon: Ext.Msg.QUESTION
            });
        }}
    ],
 
    afterRender: function() {
        this.floatingItems.getAt(0).show();
        this.floatingItems.getAt(1).show();
        this.callParent(arguments);
    }
});