Multi-Line column heading in CrossView
Howdy,
I'm attempting to display column headings within a CrossView (TfrxCrossView).
My goal is have these column headings appear as multi-line if their text length is
fairly long. For ref, I have CrossView.ShowColumnHeader = True and
MasterData.Stretch = True (parent band).
I've been experimenting with the Stretch mode setting for the column heading
(TfrxMemoView) and I'm still not getting the results I'm searching for (multi-line
column headings for long headings with long text).
I've attached four screen shots: one for the designer layout and three for the
rep. output with each of the StretchMode settings: smActualHeight, smDontStretch &
smMaxHeight.
Using MemoView.StretchMode = smDontStretch gives me the closest to my goal,
but the column heading Height needs to be increased ...
Show I be using another approach (other than a StretchMode setting)?
Thanks for any and all help,
I'm attempting to display column headings within a CrossView (TfrxCrossView).
My goal is have these column headings appear as multi-line if their text length is
fairly long. For ref, I have CrossView.ShowColumnHeader = True and
MasterData.Stretch = True (parent band).
I've been experimenting with the Stretch mode setting for the column heading
(TfrxMemoView) and I'm still not getting the results I'm searching for (multi-line
column headings for long headings with long text).
I've attached four screen shots: one for the designer layout and three for the
rep. output with each of the StretchMode settings: smActualHeight, smDontStretch &
smMaxHeight.
Using MemoView.StretchMode = smDontStretch gives me the closest to my goal,
but the column heading Height needs to be increased ...
Show I be using another approach (other than a StretchMode setting)?
Thanks for any and all help,
Comments
Thanks for the very prompt reply and your suggestion!
I tried altering the CrossView.MaxWidth to a slightly
lower value (120 - down from the original 130 value).
This appears to have solved my prob - excellent.
For ref, I also tried turning the CrossView.AutoSize to
Off & this was not helpful. However, I believe I can
manually set these values via use of OnCalcWidth property
(script) and I'll experiment accordingly.
I've attached a few screen shots showing this rep's
output with the lowered CrossView.MaxWidth and:
1. CrossView.AutoSize = False
2. CrossView.AutoSize = True (solution)
3. designer layout using 2.
Thanks again for your help!