Is it possible to show some lines in a crossed out font?
Thanks in advance
Otto
METHOD PaintData( nRow, nCol, nHeight, lHighLite, lSelected, nOrder ) CLASS TXBrwColumn
oFont := ::oDataFont
if ValType( oFont ) == "B"
oFont = Eval( oFont, Self )
endif
METHOD DataHeight() CLASS TXBrwColumn
...
if ::bStrData != nil .and. ::oDataFont != nil
if ValType( ::oDataFont ) == "B"
nHeight := FontHeight( ::oBrw, Eval( ::oDataFont, Self ) )
else
nHeight := FontHeight( ::oBrw, ::oDataFont )
endif
endif
...
METHOD DataWidth() CLASS TXBrwColumn
...
if ::bStrData != nil
cText := Eval( ::bStrData, Self )
nLen := Len( cText )
if ValType ( ::oDataFont ) == "B"
oFont = Eval( ::oDataFont, Self )
else
oFont = ::oDataFont
endif
while nFrom <= nLen
cLine := ExtractLine( cText, @nFrom )
cLine := Replicate( "B", Len( cLine ) )
nWidth := Max( nWidth, ::oBrw:GetWidth( cLine, oFont ) )
enddo
endif
...
METHOD CreateButtons() CLASS TXBrwColumn
...
::oBtnList:SetFont( If( ValType( ::oDataFont ) == "B", Eval( ::oDataFont, Self ), ::oDataFont ) )
...
::oBtnElip:SetFont( If( ValType( ::oDataFont ) == "B", Eval( ::oDataFont, Self ), ::oDataFont ) )
oCol:oDataFont := { || f_fntRowData() }
STATIC FUNCTION f_fntRowData()
LOCAL oFntRow:=""
IF (ordkeyno()) % 2 == 0
oFntRow := oFnt1
elseif
…
ELSE
oFntRow := oFnt2
ENDIF
RETURN (oFntRow)
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 38 guests