dabo Commit
Revision 5154
Date: 2009-03-27 15:15:13 -0700 (Fri, 27 Mar 2009)
Author: Paul
Trac: http://trac.dabodev.com/changeset/5154
Changed:
U trunk/ide/ReportDesigner.py
Log:
When clicking on an object, the view will scroll as if the user clicked on the
vertical and horizontal scrollbars at the same time. Fixed.
Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2009-03-27 22:03:25 UTC (rev 5153)
+++ trunk/ide/ReportDesigner.py 2009-03-27 22:15:13 UTC (rev 5154)
@@ -1126,14 +1126,8 @@
def onMouseLeftDown(self, evt):
self.updateSelected(evt)
+ evt.stop() ## Otherwise the default of scrolling the panel
will occur
- if self.Application.Platform == "Mac":
- # Mac needs the following line, or LeftUp will never
fire. TODO:
- # figure out how to abstract this into dPemMixin (if
possible).
- # I posted a message to wxPython-mac regarding this -
not sure if
- # it is a bug or a "by design" platform inconsistency.
- evt.stop()
-
self._mouseDown = True
mouseObj = self.getMouseObject()
if not isinstance(mouseObj, Band):
@@ -2006,7 +2000,6 @@
def drawReportForm(self):
"""Resize and position the bands accordingly, and draw the
objects."""
-
viewStart = self.GetViewStart()
self.SetScrollbars(0,0,0,0)
rw = self._rw
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message:
http://leafe.com/archives/byMID/[email protected]