FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse Spliting header into 2 line using CRLF (Solved)
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
xBrowse Spliting header into 2 line using CRLF (Solved)
Posted: Mon Jan 04, 2010 09:58 AM
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 (fw): Select all Collapse
For i:=1 to Len(oBrw:aCols)
    cTestHeader:=oBrw:aCols[i]:cHeader
    oBrw:aCols[i]:cHeader:=cTestHeader+CRLF+" Ans"
Next


Screen snapshot


Any Idea where I am wrong ?

Regards
Anser
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: xBrowse Spliting header into 2 line using CRLF
Posted: Mon Jan 04, 2010 11:37 AM

Anser

oBrw:nHeaderLines := 2

HTH

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: xBrowse Spliting header into 2 line using CRLF
Posted: Mon Jan 04, 2010 11:54 AM
Thank you Mr.Richard,

Code (fw): Select all Collapse
oBrw:nHeaderHeight := 40   
oBrw:nHeaderLines:= 3

Solved the problem

Regards
Anser
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse Spliting header into 2 line using CRLF (Solved)
Posted: Mon Jan 04, 2010 01:36 PM
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
Regards



G. N. Rao.

Hyderabad, India
Posts: 1335
Joined: Fri Jun 13, 2008 11:04 AM
Re: xBrowse Spliting header into 2 line using CRLF (Solved)
Posted: Mon Jan 04, 2010 01:43 PM

Dear Mr.Rao,

Thank you for the information.

Regards
Anser

Continue the discussion