Search found 80 matches: textout

Return to advanced search

Re: Know the size of a font selected

... Max( 0, nCol - ::GetTextWidth( cText, oFont ) ) CASE nPad == 2 // center nCol := Max( 0, nCol - ( ::GetTextWidth( cText, oFont ) / 2 ) ) ENDCASE TextOut( ::oPrn:hDCOut, nRow, nCol, cText ) IF oFont != nil oFont:DeActivate( ::oPrn:hDCOut ) ENDIF IF nClrText != NIL #IFDEF __HARBOUR__ SetTextColor( ...
by Otto
Tue Nov 03, 2020 10:56 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Know the size of a font selected - Resolved -
Replies: 9
Views: 1324

Re: Actualizar en un BMP

... que se vean de forma "Transparente", como lo hace: oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),; SetTextColor( oBmp:hDC, CLR_BLACK ),; TextOut( oBmp:hDC, 20, 540, "Numero de Clientes:" ) } Pero necesito cambiarle, el color, el tamaño y la fuente, y poner varios textos, Constantes ...
by servicomver
Tue May 12, 2020 2:34 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Actualizar en un BMP
Replies: 3
Views: 461

Actualizar en un BMP

... SIZE 500, 400 OF oWnd NOBORDER oBmp:bPainted = { || SetBkMode( oBmp:hDC, 1 ),; SetTextColor( oBmp:hDC, CLR_YELLOW ),; TextOut( oBmp:hDC, 50, 15, "Actualmente con nosotros" ) } //¿ Se puede cambiar el tamaño de la fuente ? ¿ Como se haría para que en otra parte ...
by servicomver
Mon May 11, 2020 9:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Actualizar en un BMP
Replies: 3
Views: 461

Haru PDF in Mod_Harbour

I am attempting to convert many old Clipper 87 printouts to Mod_Harbour. The original programmer utilized the IBM line / box characters found at around chr(179) through chr(218). I cannot figure out how to utilize the Courier New Regular" TTF font in Haru Pdf and produce those characters. Howev...
by byron.hopp
Thu Mar 26, 2020 7:30 am
 
Forum: mod_harbour
Topic: Haru PDF in Mod_Harbour
Replies: 0
Views: 237

Create PDF in Mod_Harbour.

Is there any samples of printing to pdf using harupdf lib. I tried the TPdf print class from my newest version of Harbour but this does not work. I then created the code below by using the functions used in the class: function main() local hPdf := HPDF_New() local hPage := HPDF_AddPage( hPdf ) HPDF_...
by byron.hopp
Sun Mar 01, 2020 7:22 pm
 
Forum: mod_harbour
Topic: Create PDF in Mod_Harbour.
Replies: 5
Views: 804

Re: Imprimir pdf sin intervención del usuario

Con Harbour, tienes que enlazar las librerias hbhpdf.lib y libhpdf.lib #include "FiveWin.ch" #include "harupdf.ch" Function Main() Local oPdf,Page,oImage,oFont,Font1,Font2,Font3 oPdf:=HPDF_New() HPDF_SetCompressionMode( oPdf, HPDF_COMP_ALL ) **HPDF_SetPassword( oPdf, 'jaime', 'al...
by jacgsoft
Wed Jul 31, 2019 9:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir pdf sin intervención del usuario
Replies: 9
Views: 2198

Richedit how to highlight a defined word in memofields ?

Hello, I want to highlight a defined word inside a memofield from a selected record in xbrowse. Maybe a solution using < At > and < Textout > :?: @ 10,20 XBROWSE oBrw SIZE 580, -75 PIXEL OF oDlg ; COLUMNS "TOPICNO", "FORUM", "LIKE", "T_DELETE", ...
by ukoenig
Tue Feb 06, 2018 7:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Richedit how to highlight a defined word in memofields ?
Replies: 36
Views: 8277

Re: Mr. Rao's samples collection.

... hDC, oFont:hFont )for n := 1 to nLencLetra := substr( cTexto, n, 1 )nColor := SetTextColor( hDC, nRandom( CLR_WHITE ) )TextOut( hDC, 10, nLeft, cLetra )SetTextColor( hDC, nColor )nLeft += GetTextWidth( hDC, cLetra, oFont )nextSelectObject( ...
by Marc Venken
Sun Feb 04, 2018 1:12 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao's samples collection.
Replies: 139
Views: 20656

Re: Mr. Rao's samples collection.

Coloring text in a string :

Here was a topic. Maybe a hint

viewtopic.php?f=31&t=31113&hilit=textout
by Marc Venken
Sun Feb 04, 2018 1:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Mr. Rao's samples collection.
Replies: 139
Views: 20656

Re: Ayuda DLL

Antonio, aquí la segunda parte: Error: Unresolved external '_HB_FUN_DRAWTHEMED' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_GETDLGBASEUNITS' referenced from P:\32BITS\FWH\LIB\FIVEHX.LIB|DIALOG Error: Unresolved external '_HB_FUN_CDLG2CHR' referenced from P...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 6332

Re: Label new

Silvio,

Use ExtTextOut() instead of TextOut(), so you can specify the width and height
by Antonio Linares
Tue Jan 31, 2017 8:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Label new
Replies: 16
Views: 4485

Re: multiple defintions, forst defined here

I changed the folder I was using to start hbmk2 to where the source code sits, and now am getting undefined instead of duplicates This is due, I guess, to not pulling in the correct library(ies). I added trace to see what was going on (thanks for that tip). Does this and the console listing below he...
by lmheimendinger
Mon Dec 05, 2016 11:37 pm
 
Forum: FiveWin for CA-Clipper
Topic: multiple defintions, forst defined here
Replies: 15
Views: 20305

Re: Colocar Negrilla en mitad del texto

Dear Antonio,
can you please help to Change this pseudocode

if isrtf( cText )
oRTF:print
else
TextOut( ::oPrn:hDCOut, nRow, nCol, cText )
endif

in valid FW code.
Thanks in advance
Otto
by Otto
Sun Jul 26, 2015 9:07 pm
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Colocar Negrilla en mitad del texto
Replies: 19
Views: 8449

Re: Colocar Negrilla en mitad del texto

The problem we face there is that Windows TextOut() is used to paint the text and that function does not support such formatting. Yesterday I thought about painting twice, first in bold then again in no bold, but the bold parts should be turned ...
by Antonio Linares
Sun Jul 26, 2015 10:19 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Colocar Negrilla en mitad del texto
Replies: 19
Views: 8449

Re: Colocar Negrilla en mitad del texto

Hello, maybe we can extend method say Pseudocode if isrtf( cText ) oRTF:print else TextOut( ::oPrn:hDCOut, nRow, nCol, cText ) endif Best regards, Otto METHOD Say( nRow, nCol, cText, oFont, nWidth, nClrText, nBkMode, nPad ) CLASS VRD IF ::oPrn:hDC = 0 RETURN NIL ...
by Otto
Fri Jul 24, 2015 9:35 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Colocar Negrilla en mitad del texto
Replies: 19
Views: 8449
Next

Return to advanced search

cron