documentation for wxAppTraits (patch 1518295 from Francesco)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41932 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2006-07-24 18:20:18 +00:00
parent fa5a80d6a6
commit ce6b371d14

View File

@@ -150,7 +150,7 @@ class DragCanvas(wx.ScrolledWindow):
dc = evt.GetDC()
if not dc:
dc = wxClientDC(self)
dc = wx.ClientDC(self)
rect = self.GetUpdateRegion().GetBox()
dc.SetClippingRect(rect)
self.TileBackground(dc)
@@ -185,10 +185,8 @@ class DragCanvas(wx.ScrolledWindow):
self.dragImage.EndDrag()
self.dragImage = None
dc = wx.ClientDC(self)
if self.hiliteShape:
self.hiliteShape.Draw(dc)
self.RefreshRect(self.hiliteShape.GetRect())
self.hiliteShape = None
# reposition and draw the shape
@@ -212,9 +210,10 @@ class DragCanvas(wx.ScrolledWindow):
)
self.dragShape.shown = True
self.dragShape.Draw(dc)
self.RefreshRect(self.dragShape.GetRect())
self.dragShape = None
# The mouse is moving
def OnMotion(self, evt):
# Ignore mouse movement if we're not dragging.