--- /dev/null
+<html>\r
+<head>\r
+ <title>The source code</title>\r
+ <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />\r
+ <script type="text/javascript" src="../resources/prettify/prettify.js"></script>\r
+</head>\r
+<body onload="prettyPrint();">\r
+ <pre class="prettyprint lang-js">Ext.onReady(function(){\r
+\r
+ var handleAction = function(action){\r
+ Ext.example.msg('<b>Action</b>', 'You clicked "'+action+'"');\r
+ };\r
+ \r
+ var p = new Ext.Window({\r
+ title: 'Standard',\r
+ closable: false,\r
+ height:250,\r
+ width: 500,\r
+ bodyStyle: 'padding:10px',\r
+ contentEl: 'content',\r
+ autoScroll: true,\r
+ tbar: [{\r
+ xtype:'splitbutton',\r
+ text: 'Menu Button',\r
+ iconCls: 'add16',\r
+ handler: handleAction.createCallback('Menu Button'),\r
+ menu: [{text: 'Menu Item 1', handler: handleAction.createCallback('Menu Item 1')}]\r
+ },'-',{\r
+ xtype:'splitbutton',\r
+ text: 'Cut',\r
+ iconCls: 'add16',\r
+ handler: handleAction.createCallback('Cut'),\r
+ menu: [{text: 'Cut menu', handler: handleAction.createCallback('Cut menu')}]\r
+ },{\r
+ text: 'Copy',\r
+ iconCls: 'add16',\r
+ handler: handleAction.createCallback('Copy')\r
+ },{\r
+ text: 'Paste',\r
+ iconCls: 'add16',\r
+ menu: [{text: 'Paste menu', handler: handleAction.createCallback('Paste menu')}]\r
+ },'-',{\r
+ text: 'Format',\r
+ iconCls: 'add16',\r
+ handler: handleAction.createCallback('Format')\r
+ },'->',{\r
+ text: 'Right',\r
+ iconCls: 'add16',\r
+ handler: handleAction.createCallback('Right')\r
+ }]\r
+ });\r
+ p.show();\r
+\r
+});</pre> \r
+</body>\r
+</html>
\ No newline at end of file