daboide Commit
Revision 399
Date: 2006-01-27 13:45:57 -0800 (Fri, 27 Jan 2006)
Author: paul

Changed:
U   trunk/ReportDesigner.py

Log:
Fixed the position of the band label, which defaulted to -1 instead of 0...
must be a wx thing.

Added drawing of the first column, if columnCount > 1. This visibly shows
the user how much horizontal space they have to work with.


Diff:
Modified: trunk/ReportDesigner.py
===================================================================
--- trunk/ReportDesigner.py     2006-01-27 20:17:21 UTC (rev 398)
+++ trunk/ReportDesigner.py     2006-01-27 21:45:57 UTC (rev 399)
@@ -1129,6 +1129,15 @@
                dc.DestroyClippingRegion()
                selectColor = (128,192,0)
 
+               columnCount = rdc.ReportForm.getProp("ColumnCount")
+               if isinstance(self.ReportObject, (Detail, GroupHeader, 
GroupFooter)) \
+                               and columnCount > 1:
+                       # Cover up all but the first column:
+                       dc.SetBrush(wx.Brush((192,192,192), wx.SOLID))
+                       dc.SetPen(wx.Pen((192,192,192), 0, wx.SOLID))
+                       colWidth = self.Width / columnCount
+                       dc.DrawRectangle(colWidth, 0, colWidth*(columnCount-1) 
+ 10, self.Height)
+
                for obj, size, position in selObjs:
                        rect = (position[0], position[1], size[0], size[1])
                        # border around selected control with sizer boxes:
@@ -1702,6 +1711,7 @@
                        band.Width = bandWidth
                        b = band.bandLabel
                        b.Width = band.Width
+                       b.Left = 0  ## (for some reason, it defaults to -1)
 
                        bandHeight = band.ReportObject.getProp("Height")
                        if bandHeight is None:




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev

Reply via email to