I'm converting tsBrowse controls to xbrowse ( 9.05 FWH ). I've gone through the samples, etc. and people have a variety of ways to setup the xbrowse control. In my case, I use it on a dialog with other data displayed, so I am using it with a REDEFINE.
Using tsbrowse, the following code allows me to add a column using an array:
oLbxd:setArray( aParItm )
ADD COLUMN TO BROWSE oLbxd DATA ARRAY ELEMENT 2 HEADER "Number" SIZE 130 ALIGN 0,1
ADD COLUMN TO BROWSE oLbxd DATA ARRAY ELEMENT 3 HEADER "Description" SIZE 250 ALIGN 0,1
ADD COLUMN TO BROWSE oLbxd DATA ARRAY ELEMENT 4 HEADER "Charge" SIZE 130 ALIGN 2,1
What would be the equivalent code in txbrowse ?
Also, using tsbrowse, I can add a bitmap by first defining it:
aBmp := { LoadBitMap( GetResources( ) , "CM1" ), ;
LoadBitMap( GetResources( ), "CM2" ), LoadBitMap(GetResources( ), "CM3") }
And then in the browse, I can use:
add column to oLbxo header aBmp[1] data IIF( oWrkOrd:totals,aBmp[3],;
IIF( oWrkOrd:ordnot, aBmp[ 1 ], aBmp[ 2 ] )) ALIGN 0,1 size 30 BITMAP
What would be the equivalent code in txbrowse ?
Samples are great, but they all seem to use the same methodology,. I sure wish we had some newer documentation on xbrowse ? It would be a major boost.
Thanks for the input.