Mr Nages,
I try to explain you
I wish only insert a column with checkbox.... from user
the user can insert this column check but at init when I create the xbrowse it must no showed
then..
on my Function of Totals I musst be able to Know if that record at that column is check .
If it check I must calc the new import ( sample nImporto+20%)
I made
@x,y button ...action Ins_Ritenuta(oBrw)
Function Ins_Ritenuta(oBrw)
WITH OBJECT oBrw:InsCol( 8 )
:bEditValue := { || AScan( oBrw:aSelected, oBrw:BookMark ) > 0 }
:SetCheck()
:nHeadBmpNo := { || If( Len( oBrw:aSelected ) == oBrw:nLen, 1, 2 ) }
:cHeader := "Rit."
END
oBrw:bLClicked := { |r,c,f,oBrw| If( oBrw:MouseColPos( c ) == 8 , ;
If( ( f := AScan( oBrw:aSelected, oBrw:BookMark ) ) == 0, ;
AAdd( oBrw:aSelected, oBrw:BookMark ), ;
ADel( oBrw:aSelected, f, .t. ) ), nil ), ;
oBrw:RefreshCurrent() }
oBrw:refresh()
return nil
but it make errors
I tried also with
WITH OBJECT oBrw:InsCol( 8 )
:lHide := lRitenuta
:bEditValue := { || AScan( oBrw:aSelected, oBrw:BookMark ) > 0 }
:SetCheck()
:nHeadBmpNo := { || If( Len( oBrw:aSelected ) == oBrw:nLen, 1, 2 ) }
:cHeader := "Rit."
END
at the init lRitenuta is false
the the use can press a button and change lritenuta
@x,y button ACTION ( lRitenuta:=IF(lRitenuta,.f.,.t.), oBrw:refresh() )
the browse is not refreshed
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com