Hi all,
I need to display into an xbrowse the bitmaps contained (as hansle) in the first array element.
Having the following code:
b_red:=LoadBitmap(GetResources(),"RED")
b_green:=LoadBitmap(GetResources(),"GREEN")
aArray:={}
aadd(aArray,{b_red,"Marc"})
aadd(aArray,{b_green,"Paul"})
I tried with:
REDEFINE XBROWSE oBrw ARRAY aArray ID 101 OF oDlg
ADD COLUMN TO XBROWSE oBrw BITMAP DATA aArray[OBRW:NARRAYAT(),1] ; // array element # 1
HEADER "Status" SIZE 20 CENTER
ADD COLUMN TO XBROWSE oBrw DATA ARRAY ELEM 2 ;
HEADER "Names" SIZE 80
but the first column always appear blank.
Any ideas ? Thanks in advance.