daboide Commit
Revision 600
Date: 2006-07-20 11:29:54 -0700 (Thu, 20 Jul 2006)
Author: ed
Changed:
U trunk/ClassDesignerPemForm.py
U trunk/ClassDesignerPropSheet.py
Log:
Fixed the problem with unnecessary scrolling described at the end of Tracker
#0180. Improved the default font size for the prop grid under Windows.
Diff:
Modified: trunk/ClassDesignerPemForm.py
===================================================================
--- trunk/ClassDesignerPemForm.py 2006-07-16 16:23:01 UTC (rev 599)
+++ trunk/ClassDesignerPemForm.py 2006-07-20 18:29:54 UTC (rev 600)
@@ -50,13 +50,15 @@
sz.append(hsz, "x")
sz.appendSpacer(5)
- self.mainPager = mp = dabo.ui.dPageFrameNoTabs(pnl, PageCount=2)
+ self.mainPager = mp = dabo.ui.dPageFrameNoTabs(pnl,
PageClass=dabo.ui.dPanel)
+ mp.PageCount=2
mp.bindEvent(dEvents.PageChanged, self.onMainPageChanged)
sz.append1x(mp)
sz.appendSpacer(brdr)
self.pemPage = pp = mp.Pages[0]
self.treePage = tp = mp.Pages[1]
psz = pp.Sizer = dabo.ui.dSizer("v")
+ tsz = tp.Sizer = dabo.ui.dSizer("v")
dabo.ui.dFoldPanelBar(pp, SingleClick=True, Singleton=True,
CollapseToBottom=True, RegID="mainBar")
Modified: trunk/ClassDesignerPropSheet.py
===================================================================
--- trunk/ClassDesignerPropSheet.py 2006-07-16 16:23:01 UTC (rev 599)
+++ trunk/ClassDesignerPropSheet.py 2006-07-20 18:29:54 UTC (rev 600)
@@ -393,9 +393,8 @@
self.propDict = {}
self.useCustomGetValue = self.useCustomSetValue = True
self.Editable = True
- self.ActivateEditorOnSelect = False
+ self.ActivateEditorOnSelect = False
-
# Create the property name column
col = dabo.ui.dColumn(self, Order=10, DataField="prop",
DataType="string", Width=100,
Caption=_("Property"), Sortable=True,
@@ -408,6 +407,15 @@
Searchable=False, Editable=True)
self.addColumn(col, inBatch=True)
self.autoBindEvents()
+
+ # Set the font size for each platform
+ c0 = self.Columns[0]
+ fsize = c0.FontSize
+ if self.Application.Platform == "Win":
+ self.setAll("FontSize", fsize-2, filt="BaseClass ==
dabo.ui.dColumn")
+ # Set the row height to match
+ self.RowHeight = dabo.ui.fontMetric("M", face=c0.FontFace,
size=c0.FontSize,
+ bold=c0.FontBold, italic=c0.FontItalic)[1]
# Reference to default classes. Don't know if this is the best
solution...
self.stringRendererClass = col.stringRendererClass
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev