Sample/Window.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:04:34 +0000 (17:04 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 14 Oct 2010 09:04:34 +0000 (17:04 +0800)
Sample/Window.js

index 52d5cad..cac9da9 100644 (file)
@@ -2760,8 +2760,13 @@ Window=new XObject({
                                                                                     pack : "pack_start,false,false,0"
                                                                                 },
                                                                                 {
-                                                                                    xtype: Gtk.Button,
-                                                                                    label : "Redraw",
+                                                                                    xtype: Gtk.CheckButton,
+                                                                                    listeners : {
+                                                                                        state_changed : function (self, state) {
+                                                                                            this.setText(state ? "Auto Redraw OFF" : "Auto Redraw On");
+                                                                                        }
+                                                                                    },
+                                                                                    label : "Auto Redraw On",
                                                                                     pack : "pack_start,false,false,0"
                                                                                 }
                                                                             ]