Hi Antonio
METHOD ReCalcWH() CLASS TXBrowse
Original
if ::lAdjusted
AEval( ::aCols, { |o| o:oBtnList:SetFont( o:DataFont ), o:oBtnElip:SetFont( o:DataFont ) } )
AEval( ::aCols, { |o| If( o:hChecked .and. o:bStrData == nil, o:bStrData := .f., nil ) } ) // FWH1712
::nWidths := nil
::nCellHeights := nil
::nHeaderHeight := nil
::nRowHeight := nil
::nFooterHeight := nil
::lAdjusted := .f.
::Adjust()
::Refresh()endif
Modified
if ::lAdjusted
AEval( ::aCols, { |o| IF(valtype(o:oBtnList) = 'U', NIL, o:oBtnList:SetFont( o:DataFont )) ,; <----------------------------------------------
IF(valtype(o:oBtnElip) = 'U', NIL, o:oBtnElip:SetFont( o:DataFont )) } ) <---------------------------------------------
AEval( ::aCols, { |o| If( o:hChecked .and. o:bStrData == nil, o:bStrData := .f., nil ) } ) // FWH1712
::nWidths := nil
::nCellHeights := nil
::nHeaderHeight := nil
::nRowHeight := nil
::nFooterHeight := nil
::lAdjusted := .f.
::Adjust()
::Refresh()endif
return nil
could you modify xbrowse to avoid this error?
o:oBtnList:SetFont method SetFont is not. defined when there is no button in column.