On 9/9/10 6:52 PM, Jim Byrnes wrote: > Ed Leafe wrote: >> On Sep 9, 2010, at 9:41 AM, Jim Byrnes wrote: >> >>> Is it possible to have a multiline caption in a grid column header? >>> >>> So far I haven't been able to use one and looking on the wiki or >>> searching the archives I don't see any mention of them. >> >> >> Try setting the column's WordWrap property to True.
That would be for the fields in the column, not the column header... > I tried this: > > ## *!* ## Dabo Code ID: dGrid-dPanel > def afterInitAll(self): > # This worked > self.HeaderHeight = 200 Wow! I had no idea that wx.DC.DrawLabel() (the wx function that actually draws the header caption) would handle multi-lines. I guess it makes sense in retrospect. I assume your Caption is of the form: "My Long Caption" and not: "My Long Long Long Long Caption" IOW, it doesn't WordWrap, but does correctly draw the multi-line Caption. Thanks for following up! Paul _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/[email protected]
