Page 1 of 1

xBrowse Spliting header into 2 line using CRLF (Solved)

PostPosted: Mon Jan 04, 2010 9:58 am
by anserkk
Hi

Can somebody tell me how to display the Column heading in 2 lines using CRLF

The following code (supposed to split the header into 2 lines) does not work

Code: Select all  Expand view
For i:=1 to Len(oBrw:aCols)
    cTestHeader:=oBrw:aCols[i]:cHeader
    oBrw:aCols[i]:cHeader:=cTestHeader+CRLF+" Ans"
Next  


Screen snapshot
Image

Any Idea where I am wrong ?

Regards
Anser

Re: xBrowse Spliting header into 2 line using CRLF

PostPosted: Mon Jan 04, 2010 11:37 am
by Richard Chidiak
Anser

oBrw:nHeaderLines := 2

HTH

Richard

Re: xBrowse Spliting header into 2 line using CRLF

PostPosted: Mon Jan 04, 2010 11:54 am
by anserkk
Thank you Mr.Richard,

Code: Select all  Expand view
oBrw:nHeaderHeight := 40  
oBrw:nHeaderLines:= 3

Solved the problem

Regards
Anser

Re: xBrowse Spliting header into 2 line using CRLF (Solved)

PostPosted: Mon Jan 04, 2010 1:36 pm
by nageswaragunupudi
From version 9.12 onwards, xBrowse automatically splits header, if it contains CRLF and automatically computes the header height required to display both lines.

Whatsnew.txt
* Improvement: Where header has CRLFs, data nHeaderLines is automatically computed by the xbrowse. It is desirable not to specify the data nHeaderLines manually, unless required for other reasons.

This is for information

Re: xBrowse Spliting header into 2 line using CRLF (Solved)

PostPosted: Mon Jan 04, 2010 1:43 pm
by anserkk
Dear Mr.Rao,

Thank you for the information.

Regards
Anser