dabo Commit
Revision 6549
Date: 2011-04-14 16:45:16 -0700 (Thu, 14 Apr 2011)
Author: Paul
Trac: http://trac.dabodev.com/changeset/6549
Changed:
U trunk/ide/ReportDesigner.py
Log:
Added a little unicode linefeed character to the Memo objects on the designer
surface to distinguish them from Strings.
Fixed the drawing of the expr on Memos to be aligned to the top of the object
instead of the bottom, to better reflect how the final output will be
rendered.
Diff:
Modified: trunk/ide/ReportDesigner.py
===================================================================
--- trunk/ide/ReportDesigner.py 2011-04-14 22:53:01 UTC (rev 6548)
+++ trunk/ide/ReportDesigner.py 2011-04-14 23:45:16 UTC (rev 6549)
@@ -1388,8 +1388,10 @@
if objType == "String":
alignment = obj.getProp("align")
+ vAlign = wx.ALIGN_BOTTOM
else:
alignment = "left"
+ vAlign = wx.ALIGN_TOP
fontName = obj.getProp("fontName")
fontSize = obj.getProp("fontSize")
rotation = obj.getProp("rotation")
@@ -1456,9 +1458,13 @@
dc.DrawRotatedText(expr, rect[0]+(rect[2]/4),
rect[3] - (rect[3]/2), rotation)
else:
dc.DrawLabel(expr, (rect[0], rect[1], rect[2],
rect[3]),
-
alignments[alignment]|wx.ALIGN_BOTTOM)
+ alignments[alignment]|vAlign)
+ if objType in ("Memo", "Paragraph"):
+ dc.DrawLabel("â´", (rect[0], rect[1],
rect[2], rect[3]),
+ wx.ALIGN_RIGHT|wx.ALIGN_TOP)
+
if objType in ("Rectangle", "SpanningRectangle"):
strokeWidth =
self._rw.getPt(obj.getProp("strokeWidth")) * self.Parent.Zoom
sc = obj.getProp("strokeColor")
_______________________________________________
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]