Search found 33 matches: drawtextex

Return to advanced search

Re: Create a Panel width a text

... width and height are stored in the rect structure. Please look for DT_CALCRECT in FWH *.prg source code for code examples yes, I allredy found DrawTextEx( ::hDC, cMessage , {nTop,nLeft,nBottom,nRight} ) but when I have the new cMessage ( edited) I must modify 3 controls on line 1. the TaskPanel ...
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: 2920

Re: To Mister Nages - xBrowser

Dear Mr. Nages,

thank you aHilite has worked.

How to keep the background image of the browser when using DrawTextEx.

Look at the bottom of the word "Teste"

Att.,

Oliveiros Junior

Image
by oliveiros junior
Mon Aug 17, 2020 7:31 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Mister Nages - xBrowser
Replies: 21
Views: 2135

Re: Delimiter characters

Thank You, Mr. Rao. I looked at the DrawTextEx () function, but I still don't understand how you can show a continuous string " ABCDEFGHIJKLMNOPQRSTU " in a cell (which is wider than this cell), so that the string looks something ...
by Natter
Fri May 01, 2020 7:41 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Delimiter characters
Replies: 4
Views: 562

Re: Delimiter characters

XBrowse uses Windows API function DrawTextEx() for drawing single/multi-line text. If the value does not fit into single line and enough cell height is available, the text is displayed in multiline. For more details how the DrawTextEx() function ...
by nageswaragunupudi
Wed Apr 29, 2020 11:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Delimiter characters
Replies: 4
Views: 562

Re: Problem with memo text printout

... cmSay() print the & character as expected, the method SayText() converts & as underscore of the next character (default behaviour of DrawTextEx()). This is bug in printer.prg and needs to be fixed. But the problem is not new to the latest build. This behavior has been there in all ...
by nageswaragunupudi
Sat Feb 15, 2020 12:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with memo text printout
Replies: 5
Views: 1503

Re: New FTDN May/Mayo 2019 (FWH 19.05)

... con un color de texto se aplican solo a ese Say() y no afectan a los siguientes. * Mejora: En mostrar/imprimir texto multilínea: Las funciones DrawTextEx(), FW_SayText() y el método SayText() de las clases TWindow y TPrinter pueden generar texto de una sola línea o de varias líneas para encajar ...
by Antonio Linares
Fri Jun 07, 2019 11:14 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN May/Mayo 2019 (FWH 19.05)
Replies: 4
Views: 3098

New FTDN May/Mayo 2019 (FWH 19.05)

... with a text color apply to that say only and does not affect subsequent says. * Enhancement in display/printing of multi-line text: Functions DrawTextEx(), FW_SayText() and method SayText() of Window and Printer classes can output single line or multi line text to fit inside the rectangle ...
by Antonio Linares
Mon Jun 03, 2019 12:54 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN May/Mayo 2019 (FWH 19.05)
Replies: 4
Views: 3098

New FTDN November/Noviembre 2016 (FWH 16.11)

... object: used to fill the aRect 7. lBorder: Default .F. If .t., single line border is drawn * Enhancement: Extended paramters for the function DrawTextEx( hDC, cText, aRect, nStyle, [hFont], ; [nTextClr], [@nRight] ) --> nHeight Additional optional parameters hFont and nTextClr are intended ...
by Antonio Linares
Wed Nov 30, 2016 12:07 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN November/Noviembre 2016 (FWH 16.11)
Replies: 4
Views: 3150

Re: TBarTabs Tamaño de los tabs

... originalmente en 17 EN EL METODO PAINTTAB() // esto modifica la ubicacion vertical del texto del tab do case case ::nOrientation <= OR_BOTTOM DrawTextEx( ::hDC, cPrompt ,; { If( LargeFonts(), 1, 8 + If( ::nOrientation == OR_TOP, 1,0 ) ),; nStart + 15 + nBmpWidth, ; ::nHeight, nStart + 20 + ...
by rterraz
Tue Sep 20, 2016 2:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TBarTabs Tamaño de los tabs
Replies: 3
Views: 738

Re: Urgent : Listbox problem in FWH 15.09

In both functions DrawText() and DrawTextEx() there is a:

if ( wLen > 0 )

I want to check if that is the problem but I am unable to reproduce the error here
by Antonio Linares
Mon Sep 28, 2015 11:56 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Urgent : Listbox problem in FWH 15.09
Replies: 25
Views: 4744

Re: resize a column to multiline in xbrowse

Just before using DrawTextEx() function write to log file values of hDC, cData and aRect and verify if they are valid values.

You may use
FWLOG hDC, cData, aRect
You can see the results in <exename>.log
by nageswaragunupudi
Mon Mar 09, 2015 6:11 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a column to multiline in xbrowse
Replies: 23
Views: 7323

Re: resize a column to multiline in xbrowse

Rao,

When I try your XbrColMaxHeight() function, I always get 1 for DrawTextEx( hDC, cData, aRect, nOr( DT_CALCRECT, DT_WORDBREAK ) ) eventhough cData does contains varying length of strings. How to fix this?
by hua
Mon Mar 09, 2015 4:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a column to multiline in xbrowse
Replies: 23
Views: 7323

Re: DRAW A TEXT ON A BITMAP

... nAt nAt := AT( CRLF, cText ) IF nAt > 0 cLine := Left( cText, nAt - 1 ) oBold:Activate( hDC ) nFontHt := GetTextHeight( oCol:oBrw:hWnd, hDC ) DRAWTEXTEX( hDC, cLine, { nRow, nLeft, nRow + nFontHt + 4, nRight }, 1 ) //oCol:nDataStyle ) oBold:DeActivate( hDC ) nRow += nFontHt + 4 cLine := SubStr( ...
by ukoenig
Tue Jul 02, 2013 3:08 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DRAW A TEXT ON A BITMAP
Replies: 35
Views: 8995

draw a group on window

... oApp:oWndmain:nWidth-420,; oApp:oWndMain:nHeight-10,; oApp:oWndMain:nWidth-10} SetBkMode(hDC,1) SetTextColor(hDC,CLR_RED) DrawTextEx( hDC, oApp:cBuild+" - "+oApp:cUrl, aRect2, 1 ) return nil
by Silvio.Falconi
Sat Mar 16, 2013 10:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: draw a group on window
Replies: 2
Views: 609

xBrowse < DrawTextEx > on right-mouseclick ?

Hello, I have a little problem using < DrawTextEx > With a right-mouseclick I can change a Image, but the painted text is not refreshed. How to call < DrawTextEx > on right-mouseclick, after the new Image is selected ? oBrw:Refresh() ...
by ukoenig
Sun Aug 12, 2012 2:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: xBrowse < DrawTextEx > on right-mouseclick ?
Replies: 0
Views: 433
Next

Return to advanced search