Combine xBrowse columns

Combine xBrowse columns

Postby Natter » Sat Jun 25, 2022 11:02 am

Hi,

Is it possible to combine xBrowse columns only for specific rows ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Combine xBrowse columns

Postby nageswaragunupudi » Sat Jun 25, 2022 3:33 pm

Please try fwh\samples\xbruser.prg.

Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Combine xBrowse columns

Postby Natter » Sat Jun 25, 2022 6:42 pm

Thanks! I completely forgot about this example :(
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Combine xBrowse columns

Postby nageswaragunupudi » Mon Jun 27, 2022 4:52 am

This is much simpler:

Please try \fwh\samples\xbcelmrg.prg

Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Combine xBrowse columns

Postby damianodec » Wed Jun 29, 2022 12:03 pm

xbcelmrg.prg?
from which version?

In 17.09 there is not
FiveWin for xHarbour 17.09 - Sep. 2017 - Embarcadero C++ 7.00 for Win32
FWH 64 for Harbour 19.06 (MSVC++) Jun. 2019 - Harbour 3.2.0dev (r1904111533)
Visual Studio 2019 - Pelles C V.8.00.60 (Win64)
User avatar
damianodec
 
Posts: 419
Joined: Wed Jun 06, 2007 2:58 pm
Location: Italia

Re: Combine xBrowse columns

Postby nageswaragunupudi » Wed Jun 29, 2022 12:26 pm

version FWH2007 onwards
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Combine xBrowse columns

Postby Natter » Wed Jun 29, 2022 12:48 pm

xcelmg.prg is a good example! However, the bExtand code block assumes gluing columns starting from the first one.
How do I glue, for example, only 2 and 3 columns ?
Is it possible not to show column separators in one line ?
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am

Re: Combine xBrowse columns

Postby nageswaragunupudi » Wed Jun 29, 2022 1:01 pm

Code: Select all  Expand view  RUN

oBrw:aCols[ 2 ]:bExtend := { If( <cond>, 1, 0 ) }
 


For any column, number of columns returned by bExtend, to the right of the current column are merged with the current column

If aCols[ 3 ]:bMerge returns 3, then columns 3,4,5,6 are merged. ( col 3 to col 3+3 )
If aCols[ 2 ]:bMerge returns 1. columns 2 and 3 are merged ( col 2 to col 2+1 )
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10646
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Combine xBrowse columns

Postby Natter » Wed Jun 29, 2022 1:34 pm

Yes, I understand. Thanks !
Natter
 
Posts: 1224
Joined: Mon May 14, 2007 9:49 am


Return to FiveWin for Harbour/xHarbour

Who is online

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