by ShumingWang » Wed Jan 17, 2007 1:28 am
obrow := TXBrowse():New(odlg)
oBrow:nMarqueeStyle := 6
obrow:bskip:=obrow:bskipper
obrow:bClrStd := {||{CLR_BLACK,if(odb1:ordinqty-odb1:ordouqty-odb1:minqty+odb1:allqty<0,CLR_HRED,if(EVAL(obrow:bBookMark)%2==0,CLR_1,CLR_2))}}
obrow:nfreeze:=1
obrow:nColDividerStyle := LINESTYLE_GREEN
obrow:nRowDividerStyle := LINESTYLE_GREEN
oCol := obrow:AddCol()
oCol:cHeader := "Unit"
oCol:bStrData := {||odb1:unit}
obrow:CreateFromResource(201)
define button id 101 of odlg action savestate(obrow,"browseid1")
activate dialog odlg on init (restorestate(obrow,"browseid1")