Hi All
This code work
oCol := oLbx:AddCol()
oCol:AddResource("GREEN")
oCol:AddResource("RED")
oCol:cHeader := "Started"
oCol:bBmpData := { || iif(oProject:prjstart, 1, 2) }
oCol:bStrData := { || iif( oProject:prjstart, "Yes", "No ")}
oCol:bEditValue := { || oProject:prjstart }
oCol:nDataStyle := oCol:DefStyle( AL_RIGHT, .T.)
oCol:nEditType := EDIT_LISTBOX
oCol:aEditListTxt := { "Yes", "No"}
oCol:aEditListBound := { TRUE, FALSE }
oCol:bOnPostEdit := {|o, v| oProject:prjstart := v ,oProject:save(),oLbx:Refresh() }
but this code does not
oCol := oLbx:AddCol()
oCol:cHeader := "Started"
oCol:SetCheck( { "GREEN", "RED" }, {|o, v| (oProject:prjstart := v) } )
oCol:bStrData := { || If( oProject:prjstart, "Yes", "No" ) }
oCol:nDataStrAlign := AL_RIGHT
//-------------------------------------------------------------------------------------//
Another odd thing is when I select the dropdown listbox (yes , no) as soon as I move the
mouse to make a selection the values in the cells above and below disappear but refresh when
I double click on either option.
Cheers
Colin