+        self.log.WriteText("sash changed to %s\n" % str(evt.GetSashPosition()))
+        # uncomment this to not allow the change
+        #evt.SetSashPosition(-1)
+
+    def OnSashChanging(self, evt):
+        self.log.WriteText("sash changing to %s\n" % str(evt.GetSashPosition()))
+        # uncomment this to not allow the change
+        #evt.SetSashPosition(-1)