xBrowse Spliting header into 2 line using CRLF (Solved)

xBrowse Spliting header into 2 line using CRLF (Solved)

Postby anserkk » Mon Jan 04, 2010 9: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: 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
Last edited by anserkk on Mon Jan 04, 2010 11:54 am, edited 1 time in total.
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: xBrowse Spliting header into 2 line using CRLF

Postby Richard Chidiak » 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
User avatar
Richard Chidiak
 
Posts: 946
Joined: Thu Oct 06, 2005 7:05 pm
Location: France

Re: xBrowse Spliting header into 2 line using CRLF

Postby anserkk » Mon Jan 04, 2010 11:54 am

Thank you Mr.Richard,

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

Solved the problem

Regards
Anser
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

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

Postby nageswaragunupudi » Mon Jan 04, 2010 1: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
User avatar
nageswaragunupudi
 
Posts: 10326
Joined: Sun Nov 19, 2006 5:22 am
Location: India

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

Postby anserkk » Mon Jan 04, 2010 1:43 pm

Dear Mr.Rao,

Thank you for the information.

Regards
Anser
User avatar
anserkk
 
Posts: 1331
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 131 guests

cron