Antonio Linares wrote:Enrico,
Could you provide a simple example to reproduce it ?
thanks,
Not yet, sorry. But I sent you an image showing the problem.
EMG
Antonio Linares wrote:Enrico,
Could you provide a simple example to reproduce it ?
thanks,
#include "FiveWin.ch"
function Main()
local oWnd, oBrw, aValues := { { "one", "two", "three" },;
{ "four", "", "six" } }
DEFINE WINDOW oWnd
@ 1, 1 LISTBOX oBrw ;
FIELDS "", "", "" ;
COLSIZES 100, 100, 100 OF oWnd SIZE 300, 200
oBrw:SetArray( aValues )
oBrw:bLine = { || { aValues[ oBrw:nAt, 1 ], aValues[ oBrw:nAt, 2 ], aValues[ oBrw:nAt, 3 ] } }
ACTIVATE WINDOW oWnd
return nil
HB_FUNC( EXTTEXTOUT ) // ( hDC, nRow, nCol, aRect, cText, nStyle ) --> lSuccess
{
RECT rct;
UINT fuOptions;
LPCSTR szText;
WORD wLen = 0;
if ( ( hb_pcount() > 4 ) && ( HB_ISCHAR( 5 ) ) )
{
szText = hb_parc( 5 );
wLen = hb_parclen( 5 );
}
// if ( wLen > 0 )
// {
fw_parRect( 4, &rct );
fuOptions = ( hb_pcount() > 5 ? hb_parnl( 6 ) : ETO_OPAQUE | ETO_CLIPPED );
if ( isutf8( szText, wLen ) )
{
LPWSTR pW = UTF8toUTF16( szText );
hb_retl( ExtTextOutW( ( HDC ) fw_parH( 1 ), hb_parni( 3 ), hb_parni( 2 ),
fuOptions, &rct, pW, wcslen( pW ), 0 ) );
hb_xfree( pW );
}
else
hb_retl( ExtTextOutA( ( HDC ) fw_parH( 1 ), hb_parni( 3 ), hb_parni( 2 ),
fuOptions, &rct, szText, wLen, 0 ) );
// } else hb_retl( 0 );
}
Antonio Linares wrote:Fixed, it was a little bug in function ExtTextOut()
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 57 guests