This piece of code reproduces the issue:
- Code: Select all Expand view
- #include "fivewin.ch"
Function main()
local oWnd,oBrw
LOCAL aData := {},n, oBrush
for n:=1 to 200
aAdd(aData, {"Product "+hb_ntoc(n),0.0})
next
DEFINE WINDOW oWnd
@ 0, 0 XBROWSE oBrw OF oWnd STYLE 2015 ;
DATASOURCE aData ;
COLUMNS 1,2 ;
HEADERS "Desc","Qta"
with object oBrw
:lFastEdit := .T.
end
DEFINE BRUSH oBrush COLOR RGB(192,192,192)
#define CLR_EDITED RGB(240,64,64)
with object oBrw:aCols[2]
:nEditType := EDIT_GET
:cEditPicture := "999999.99"
:lAutoSave := .T.
:oBrush := {|| iif(empty(oBrw:aArrayData[oBrw:KeyNo(),2]),oBrush,nil) }
:bClrStd := {|| ;
{ iif(empty(oBrw:aArrayData[oBrw:KeyNo(),2]),CLR_BLACK,CLR_EDITED), ;
CLR_WHITE} ;
}
end
oBrw:CreateFromCode()
oWnd:oClient := oBrw
activate Window oWnd
return nil
I am using the FW 18.01, maybe is it already fixed on newer versions?
using 18.01 my PC create an executable of 3.686.400 bytes for this sample, how big is with new version? (the size is main reason why we don't update so long)
Regards,
PS: without brush is worse, you see the old value