Multi line column header in VB6 
Author Message
 Multi line column header in VB6

I'm using an MSFlexGrid and have one fixedrow. I would like to have some
header titles to be multi line. For example:

column1    New      column3
           Column2

So, in the code, there would be something like this:

flexGrid.row = 0
flexGrid.col = 0
flexGrid.text = "column1"
flexGrid.col = 1
flexGrid.text ="New\nColumn2"
flexGrid.col = 2
flexGrid.text = "column3"

However the "\n" doesn't give a new line.

Is this even possible?

Sent via Deja.com http://www.*-*-*.com/
Before you buy.



Sun, 24 Mar 2002 03:00:00 GMT  
 Multi line column header in VB6
Try

chr(13) - linefeed
chr(10) - newline

NL = chr(13) + chr$(10)   ' this is a carriage return
or
NL = chr(10)  'in some cases this is enough

flexGrid.text ="New" + NL + "Column2"

or use the  VB constant for newline. I can not find it at this time.

Quote:

> I'm using an MSFlexGrid and have one fixedrow. I would like to have some
> header titles to be multi line. For example:

> column1    New      column3
>            Column2

> So, in the code, there would be something like this:

> flexGrid.row = 0
> flexGrid.col = 0
> flexGrid.text = "column1"
> flexGrid.col = 1
> flexGrid.text ="New\nColumn2"
> flexGrid.col = 2
> flexGrid.text = "column3"

> However the "\n" doesn't give a new line.

> Is this even possible?

> Sent via Deja.com http://www.deja.com/
> Before you buy.



Sun, 24 Mar 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ListView multi-lined column headers

2. List, multi-column with header

3. Multi-column including group headers

4. Multi-line header for listview

5. Simulating or Having more than 1 column header line with ListView

6. ListView - multiple lines in column header

7. more than one line in crosstab column header

8. Can you have a datagrid column heading be multi-lined or wrap

9. Marking Columns in multi-line text

10. Multi-line column in ListView

11. How to change the column width of a multi-line list box

12. How to change the column width of a multi-line list box

 

 
Powered by phpBB® Forum Software