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,

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 1:07AM
    try setting the maxwidth prop of the tfrxcrossview object and you may need turn off autosize
  • edited 1:07AM
    Howdy Gordk,

    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!

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.