FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour How we can merge XBROWSE Column header ?
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
How we can merge XBROWSE Column header ?
Posted: Thu Nov 22, 2012 08: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 24.04, BCC 7 32 bit, MariaDB
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM
Re: How we can merge XBROWSE Column header ?
Posted: Thu Nov 22, 2012 12:06 PM
Shridhar,

there is a nice sample : xbgrpsum.prg



@ 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 :-)
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.
Posts: 336
Joined: Mon Dec 07, 2009 02:49 PM
Re: How we can merge XBROWSE Column header ?
Posted: Thu Nov 22, 2012 05:35 PM

Hi Uwe ,

Thanks a lot for your support. Its working :D

Thanks
Shridhar

Thanks

Shridhar

FWH 24.04, BCC 7 32 bit, MariaDB

Continue the discussion