Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Report Control
  New Posts New Posts RSS Feed - Multi-line column headers
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Multi-line column headers

 Post Reply Post Reply
Author
Message
Graham View Drop Down
Groupie
Groupie


Joined: 12 May 2003
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Graham Quote  Post ReplyReply Direct Link To This Post Topic: Multi-line column headers
    Posted: 03 October 2011 at 6:26pm
Is it possible to have multi-line column headers? If so, how is this achieved?
 
Thanks,
Graham
Back to Top
Willowmaster View Drop Down
Senior Member
Senior Member
Avatar

Joined: 12 July 2010
Location: Netherlands
Status: Offline
Points: 180
Post Options Post Options   Thanks (0) Thanks(0)   Quote Willowmaster Quote  Post ReplyReply Direct Link To This Post Posted: 04 October 2011 at 2:32am
Maybe you can use Markup to do this? I'm not into XAML but there is a lot you can do with it.
Set the property EnableMarkup to True and you can use XAML.
Product: Xtreme SuitePro (ActiveX) version 15.3.1

Platform: Windows XP (32bit) - SP 3 (on VMWare)

Language: Visual Basic 6.0



Back to Top
chc_gpi View Drop Down
Newbie
Newbie


Joined: 06 October 2011
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote chc_gpi Quote  Post ReplyReply Direct Link To This Post Posted: 06 October 2011 at 11:37am
Hi,
I try the same thing, Graham
Have you find how to do ?

Thanks
Back to Top
chc_gpi View Drop Down
Newbie
Newbie


Joined: 06 October 2011
Status: Offline
Points: 9
Post Options Post Options   Thanks (0) Thanks(0)   Quote chc_gpi Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2011 at 9:29am
I managed to do it :

set PaintManager:FixedRowHeight to false

Use chr(10) in the column header to make multi-line header


Back to Top
Graham View Drop Down
Groupie
Groupie


Joined: 12 May 2003
Location: United Kingdom
Status: Offline
Points: 23
Post Options Post Options   Thanks (0) Thanks(0)   Quote Graham Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2011 at 10:34am
We no longer require the change, but it's good to know for possible future application.
 
Thanks
Back to Top
SteveStraley View Drop Down
Groupie
Groupie


Joined: 25 November 2005
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote SteveStraley Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2011 at 3:49pm
Hi.
 
I set the FixedRowHeight property of the PaintManager propert of the AXReportControl and I added a \r character in the string of text for the column header and it do not seem to do anything.   The row height was not changed and the \r character did not show up in the header and the text was not separated.
 
Am I missing something here?
 
Steve
Back to Top
SteveStraley View Drop Down
Groupie
Groupie


Joined: 25 November 2005
Status: Offline
Points: 46
Post Options Post Options   Thanks (1) Thanks(1)   Quote SteveStraley Quote  Post ReplyReply Direct Link To This Post Posted: 27 October 2011 at 4:03pm
All,
 
A quick update.   I used the following on the construction of the column for the report:
 

o.HeaderAlignment = XTPColumnAlignment.xtpAlignmentWordBreak;

Where "o" is the return value from the Columns.Add() method.   This works on word breaks but not at specific locations within the column header.   In addition, if the grid is "refreshed" the column header width reverts back to FixedHeight!
 
Thoughts?   Ideas?
 
Steve
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.