I have already made changes to the codes.
In the txBrwColumn class
Method New():
Data lColWrapTextAutomatic AS LOGICAL INIT .T. // Giovany
Method PaintCellText
if Empty( ::aDataFont ) .and. Empty( ::aClrText )
If ::lColWrapTextAutomatic //Giovany
::oBrw:SayText( cData, aRect, cAlign, oFont, aColors[ 1 ], nil, nil, nOr( DT_MODIFYSTRING, DT_EDITCONTROL, DT_NOPREFIX ) )
Else
FW_SayText( hDC, cData, aRect, cAlign, oFont, aColors[ 1 ], nil, nil, nOr( DT_MODIFYSTRING, DT_EDITCONTROL, DT_NOPREFIX ),.F. ) //Giovany .F. Not Word break
EndIf
else
In imgtxtio.prg
Function FW_SayText
//Parameter lWordBreak
function FW_SayText( oWnd, cText, aRect, cAlign, oFont, nClrText, nClrBack, lBorder, nAddStyle, lWordBreak ) // oWnd or hDC
//Default
Default lWordBreak := .T. //In order not to change existing codes (Giovany)
//Block
nStyle := nHAlign
if lSingleLine
nStyle += nVAlign + DT_SINGLELINE
nStyle := nOr( nStyle, nAddStyle )
else
if lWordBreak
nStyle += DT_WORDBREAK //Do not automatically break the line (Giovany)
EndIf
if Empty( aText )
if nVAlign != DT_TOP // DT_TOP is 0
if nVAlign == DT_BOTTOM
aRect[ 1 ] := Max( aRect[ 1 ], aRect[ 3 ] - nHeight )
else
aRect[ 1 ] := Max( aRect[ 1 ], Int( ( aRect[ 3 ] + aRect[ 1 ] - nHeight ) / 2 ) )
endif
endif
else
nStyle := nOr( nStyle, nVAlign )
endif
nStyle := nOr( nStyle, nAddStyle )
I will use it until I update the FW.