Paul McNett wrote:
> 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:

I'm afraid that I mislead you.  In another message I read to be sure 
that the height would be enough to accept multiple lines. Here I was 
just saying  that I was able to set the height from code.

> "My Long
> Caption"

This is what i want.

> and not:
>
> "My Long Long Long Long Caption"

This is what I have.
>
> IOW, it doesn't WordWrap, but does correctly draw the multi-line Caption.
>
> Thanks for following up!
>
> Paul

Again sorry for the misconception.  I could not get the column header to 
display multiple lines.

Regards, Jim
_______________________________________________
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]

Reply via email to