xBrowse: Vertical Merge
Posted: Wed Apr 22, 2020 9:14 am
Hi,
Trying to set up vertical merge on Col 1 and Col 2. But doesn't seem to work.
Am using Harbour+FWH1912 for this.
What seems to be wrong:
1. Despite merging, horizontol lines are still painted in col 1
2. Only one checkbox appeared in col 2. Col 2 should have 2 check boxes. One for item 1 the other for item 2
Any help is appreciated TIA
Trying to set up vertical merge on Col 1 and Col 2. But doesn't seem to work.
Am using Harbour+FWH1912 for this.
What seems to be wrong:
1. Despite merging, horizontol lines are still painted in col 1
2. Only one checkbox appeared in col 2. Col 2 should have 2 check boxes. One for item 1 the other for item 2
Any help is appreciated TIA
Code: Select all
redefine xbrowse ::oBrw id 101 of ::oDlg ;
columns LN_CARGO, LN_SELECT, LN_REMA, LN_ACCN, LN_ACCNDESC, LN_AMOU ;
headers "No", "", "Remarks", "Code", "Account", "Amount (" + TRIM( zCurr ) + ") " ;
lines ;
array ::aFiledbf ;
update
::oBrw:nStretchCol := STRETCHCOL_WIDEST
::oBrw:bKeyDown := { | nKey | ::FC_ONCHG( nKey ) }
::oBrw:bClrSel := {|| {CLR_BLACK, CLR_HGRAY} }
::oBrw:bClrStd := {|| {CLR_BLACK, bckClr(::oBrw)} }
aeval(::oBrw:aCols,{|o| o:bLDClickData := { || ::FC_ONCHG( VK_RETURN) }, o:nEditType := EDIT_GET})
::oBrw:aCols[2]:setCheck()
::oBrw:No:lMergeVert := .t.
::oBrw:aCols[2]:lMergeVert := .t.