If I add to DCBROWSE the EDIT and MODE in the code below, the text cell can be edited but it changes the action of the column with 'check marks'. When clicking for a check mark, the check mark cell turns to a three character wide Get field. When exiting this field, the check mark then appears in the cell.
Without the EDIT and MODE parameters in the DCBROWSE the 'check mark' column works correctly with a 'click' but the text cell cannot be edited.
Some help would be appreciated.
Thanks.
GeneB
Code: Select all
@ 0,0 DCBROWSE oBrowse DATA aData SIZE 40,22 ;
PRESENTATION DC_BrowPres() FIT ;
MARK 3 ;
EDIT xbeBRW_ItemSelected MODE DCGUI_BROWSE_EDITDOWN
DCBROWSECOL DATA {|x|x:=DC_GetColArray(3,oBrowse), ;
IIF(x,BITMAP_CHECKBOX_CHECKED_S,BITMAP_CHECKBOX_UNCHECKED_S)} ;
PARENT oBrowse HEADER 'Sel' WIDTH 1 ;
TYPE XBPCOL_TYPE_BITMAP
DCBROWSECOL ELEMENT 1 PARENT oBrowse HEADER 'Item' WIDTH 13 PROTECT {||.T.}
DCBROWSECOL ELEMENT 2 PARENT oBrowse HEADER 'Text' WIDTH 24 PROTECT {||.F.}