How we can merge XBROWSE Column header ?

How we can merge XBROWSE Column header ?

Postby shri_fwh » Thu Nov 22, 2012 8:29 am

Hi ,

How we can merge XBROWSE column header ? as given below.
------------------------------
| Quantity |
| Bill | Free |
-------------------------------

column 1 is Bill
column 2 is Free

However I want to display "Quantity" for both column.

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm

Re: How we can merge XBROWSE Column header ?

Postby ukoenig » Thu Nov 22, 2012 12:06 pm

Shridhar,

there is a nice sample : xbgrpsum.prg

Image

@ 10,10 XBROWSE oBrw SIZE -10,-10 PIXEL OF oDlg ;
AUTOCOLS ;
HEADERS 'Product', 'USA', 'Canada', 'UK', 'Spain' ;
ARRAY aData CELL LINES NOBORDER FASTEDIT FOOTERS

AEval( oBrw:aCols, { |o| o:nEditType := EDIT_GET } )

WITH OBJECT oBrw
// Make Groups
:SetGroupHeader( 'Americas', 2, 3, oBold )
:SetGroupHeader( 'Europe', 4, 5, oBold )
:lAllowColReGroup := .t. // columns can be moved accross groups
// Group totals
:SetGroupTotal( 'Americas', 'Total' )
:SetGroupTotal( 'Europe', 'Total' )
// Grand Total
:SetGroupTotal( { 'Americas_Total', 'Europe_Total' }, 'Grand' + CRLF + 'Total', AGGR_SUM, oBold )
END

Best Regards
Uwe :lol:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How we can merge XBROWSE Column header ?

Postby shri_fwh » Thu Nov 22, 2012 5:35 pm

Hi Uwe ,

Thanks a lot for your support. Its working :D

Thanks
Shridhar
Thanks
Shridhar
FWH 19.12, BCC 7 32 bit, MariaDB
shri_fwh
 
Posts: 301
Joined: Mon Dec 07, 2009 2:49 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 123 guests