]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxHtmlWindow.py
no real changes
[wxWidgets.git] / wxPython / demo / wxHtmlWindow.py
index eb2aac73e3f64761e873b456ee90974cd303c9ef..cd15d3f131dfebb44157247761b35946441ff7d0 100644 (file)
@@ -13,6 +13,12 @@ class MyHtmlWindow(wxHtmlWindow):
     def __init__(self, parent, id, log):
         wxHtmlWindow.__init__(self, parent, id)
         self.log = log
     def __init__(self, parent, id, log):
         wxHtmlWindow.__init__(self, parent, id)
         self.log = log
+        EVT_SCROLLWIN( self, self.OnScroll )
+
+    def OnScroll( self, event ):
+        print 'event.GetOrientation()',event.GetOrientation()
+        print 'event.GetPosition()',event.GetPosition()
+        event.Skip()
 
 
     def OnLinkClicked(self, linkinfo):
 
 
     def OnLinkClicked(self, linkinfo):
@@ -26,8 +32,13 @@ class MyHtmlWindow(wxHtmlWindow):
         self.log.WriteText('OnSetTitle: %s\n' % title)
         self.base_OnSetTitle(title)
 
         self.log.WriteText('OnSetTitle: %s\n' % title)
         self.base_OnSetTitle(title)
 
-##     def __del__(self):
-##         print 'MyHtmlWindow.__del__'
+    def OnCellMouseHover(self, cell, x, y):
+        self.log.WriteText('OnCellMouseHover: %s, (%d %d)\n' % (cell, x, y))
+        self.base_OnCellMouseHover(cell, x, y)
+
+    def OnCellClicked(self, cell, x, y, evt):
+        self.log.WriteText('OnCellClicked: %s, (%d %d)\n' % (cell, x, y))
+        self.base_OnCellClicked(cell, x, y, evt)
 
 
 class TestHtmlPanel(wxPanel):
 
 
 class TestHtmlPanel(wxPanel):
@@ -133,6 +144,7 @@ class TestHtmlPanel(wxPanel):
 
 
     def OnPrint(self, event):
 
 
     def OnPrint(self, event):
+        ##self.printer.GetPageSetupData().SetMarginTopLeft((100,100))
         self.printer.PrintFile(self.html.GetOpenedPage())
 
 #----------------------------------------------------------------------
         self.printer.PrintFile(self.html.GetOpenedPage())
 
 #----------------------------------------------------------------------