]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxHtmlWindow.py
fixed clipping of items with icons text in report mode
[wxWidgets.git] / wxPython / demo / wxHtmlWindow.py
index eb2aac73e3f64761e873b456ee90974cd303c9ef..69d1d12e02f4f7a952c28b3380de214845e7fe08 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):
@@ -133,6 +139,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())
 
 #----------------------------------------------------------------------