Search found 97 matches: drawtext

Return to advanced search

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height ...
by Silvio.Falconi
Fri Jan 05, 2024 10:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3188

Re: Create a Panel width a text

Dear Silvio, You can use Windows API DrawText() using the flag DT_CALCRECT to calculate the dimensions of the text rectangle without actually drawing the text. it will take into account the font you are using, etc. The resulting width and height ...
by Antonio Linares
Fri Jan 05, 2024 7:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Create a Panel width a text
Replies: 29
Views: 3188

Re: De xHarbour a Harbour

Gracias nuevamente Master, En esta oportunidad con los archivos go.bat y neuro32.hbp que me indicaste el compilado se ve mas extenso, incluso se crean los archivos .C en la carpeta temporal, los OBJ no se estan creando., luego del proceso, salen estos errores, me imagino que seran librerias que esta...
by JoseAlvarez
Mon Oct 04, 2021 2:50 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: De xHarbour a Harbour
Replies: 35
Views: 3267

Re: problema con DrawBitmap() usando tCodeBars

... }, hBack ) hb_zebra_draw( ::hData, {| x, y, w, h | FillRect( hDCMem, { y, x, y + h, x + w }, hBrush ) }, 0, 0, ::nWidthCode, ::nHeightCode ) //DrawText( hDCMem, ::cCode, { ::nHeight - 15, 0, ::nHeight, ::nWidth }, 1 ) SelectObject( hDCMem, hBmpOld ) ReleaseDC( GetDesktopWindow(), hDCDesk ) ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1023

Re: Wrong Tooltip

To get a structured text, I added in method METHOD PaintBody( hDC, rc ) CLASS TC5ToolTip DrawText( hDC, AllTrim( ::cBody ), ::aRight,; nOr( If( ::lRightAlignBody, DT_RIGHT, DT_LEFT ), ; DT_EXPANDTABS , DT_WORDBREAK ) ) now the < body > works the same like a standard ...
by ukoenig
Thu Apr 02, 2020 7:52 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wrong Tooltip
Replies: 9
Views: 1426

Re: Wrong Tooltip

... to use the same logic on TC5ToolTip :?: Tabs are ignored :( I think the problem belongs to these sections in CLASS TC5Tooltip FROM TWindow : DrawText( hDC, ::cHeader2, { ::aHeader2[ 1 ] + 1, ::aHeader2[ 2 ] + 20,; ::aHeader2[ 3 ], ::aHeader2[ 4 ] - 2 }, nOR( DT_WORDBREAK, 8192 ) ) DrawText( ...
by ukoenig
Wed Apr 01, 2020 5:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wrong Tooltip
Replies: 9
Views: 1426

Re: Any tests drawing text with GDIPLUS ?

... not as a window-title There are 2 methods in GdiPlus I don't know how to use them maybe it is possible to use them for a solution. METHOD DrawText( nTop, nLeft, cText, cFont, nFont, oBrush ) METHOD DrawTextLFont( nTop, nLeft, cText, oFont, nH, oBrush, hDC, lB, lIt, lUnd, lStr, nOri, nEsc ...
by ukoenig
Thu Sep 26, 2019 8:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1541

Re: Any tests drawing text with GDIPLUS ?

... work ( just a idea ) aPalBmp := oWnd:ReadImage( c_Path1 + "Blustone.bmp", nil, .t. ) pBrush := GDIP_IMAGEBRUSH( aPalBmp[ 1 ] ) oGraphics:DrawText( nTop + ( nWidth / 2 ) - 15, nLeft + ( nWidth / 2 ) - 50, nPercent, uFont, nFont, pBrush ) with normal text http://www.pflegeplus.com/IMAGES/Progress3.jpg ...
by ukoenig
Sat Sep 14, 2019 12:30 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1541

Any tests drawing text with GDIPLUS ?

Hello, I tested drawing text with GDIPLUS with Methods oGraphics:DrawText( nTop, nLeft, cText, cFont, nFont, oBrush ) oGraphics:DrawTextLFont( nTop, nLeft, cText, oFont, nH, oBrush, hDC, lB, lIt, lUnd, lStr, nOri, nEsc ) NO text displayed :( There aren't ...
by ukoenig
Sat Sep 14, 2019 8:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Any tests drawing text with GDIPLUS ?
Replies: 7
Views: 1541

Re: Testing Debenu Quick PDF Library

... the list with available functions in the Lite version Edition. AddImageFromFile AddLinkToWeb AddStandardFont DocumentCount DrawQRCode DrawImage DrawText DrawTextBox FindImages GetInformation GetPageBox HasFontResources ImageCount ImageHeight ImageWidth IsLinearized LastErrorCode LoadFromFile ...
by Marc Vanzegbroeck
Sun Mar 10, 2019 11:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Testing Debenu Quick PDF Library
Replies: 44
Views: 7477

Grid con coloreado de texto encontrado

... imagen, que el texto encontrado se mostrara en negrita o rotulado. Supongo que habría que echar mano de los fuentes del tcbrowse y modificar en el drawtext, pero ahora mismo no sé por donde empezar para calcular donde (lugar del texto) hay que empezar y terminar de pintar. ¿ Alguien ha hecho algo ...
by hmpaquito
Thu Sep 06, 2018 9:03 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Grid con coloreado de texto encontrado
Replies: 0
Views: 338

Re: an image on btnbmp and other

and with... :bPainted := { | hDC, cP, oBtn | DrawText2(hDC, oFont:hFont, 2, LTrim( Str(oBtn:Cargo)) + " " ,2, 20, 34, 62,CLR_WHITE, CLR_RED )} FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color,color2 ) ...
by Silvio.Falconi
Wed May 23, 2018 9:13 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: an image on btnbmp and other
Replies: 21
Views: 3884

Re: an image on btnbmp and other

Otto, mycent... try with :bPainted := { | hDC, cP, oBtn | DrawText2(hDC, oFont:hFont, 1, LTrim( Str(oBtn:Cargo)) + " " ,2, 30, 34, 62, CLR_WHITE )} FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color ) LOCAL hFontOld:= ...
by Silvio.Falconi
Wed May 23, 2018 9:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: an image on btnbmp and other
Replies: 21
Views: 3884

Re: an image on btnbmp and other

Dear Mr Rao, can you please show me on this example how to get this working. :bPainted := { |hDC| DrawText( hDC, LTrim( Str( n ) ) + " " , { 2, 30, 34, 62 } ) } In my case it is always 8. How can I add to more textlines to the button with different fonts. Thank ...
by Silvio.Falconi
Wed May 23, 2018 7:58 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: an image on btnbmp and other
Replies: 21
Views: 3884

Re: an image on btnbmp and other

Dear Mr Rao, can you please show me on this example how to get this working. :bPainted := { |hDC| DrawText( hDC, LTrim( Str( n ) ) + " " , { 2, 30, 34, 62 } ) } In my case it is always 8. How can I add to more textlines to the button with different fonts. Thank ...
by Otto
Wed May 23, 2018 6:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: an image on btnbmp and other
Replies: 21
Views: 3884
Next

Return to advanced search

cron