Search found 57 matches: setbkmode

Return to advanced search

How to change the xBrowse-bkstyle at runtime ?

... AUTOCOLS LINES NOBORDER FONT oFont2 ; BACKGROUND cBackImg STRETCH UPDATE :D // OK see image doesn't work :( // TILED 0 // STRETCH 1 // FILL 2 SetBkMode( oBrw1:GetDC(), 2 ) changing BACKGROUND cBackImg UPDATE //STRETCH SetBkMode( oBrw1:GetDC(), 1 ) oBrw1:Refresh() no difference ----------------------- ...
by ukoenig
Thu Apr 15, 2021 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change the xBrowse-bkstyle at runtime ?
Replies: 1
Views: 407

Re: Know the size of a font selected

... oFont := ::oPrn:oFont DEFAULT nBkMode := 1 DEFAULT nPad := 0 IF oFont != nil oFont:Activate( ::oPrn:hDCOut ) ENDIF // 1,2 transparent or Opaque SetbkMode( ::oPrn:hDCOut, nBkMode ) IF nClrText != NIL #IFDEF __HARBOUR__ SetTextColor( ::oPrn:hDCOut, nClrText ) #ELSE SetTextCol( ::oPrn:hDCOut, nClrText ...
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: To Mister Nages - xBrowser

Dear Mr. Nages, I put the SetBkMode (hDC, 1) straight into the function and it worked. If nClrBack != NIL nBkMode := SetBkMode( hDC, OPAQUE ) nOldClr := SetBkColor( hDC, nClrBack ) Else SetBkMode( hDC, 1 ) EndIf Thank you very much. Att., ...
by oliveiros junior
Wed Aug 19, 2020 7:34 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Mister Nages - xBrowser
Replies: 21
Views: 2268

Re: Actualizar en un BMP

... "ese numero variará cada 5 minutos" lo que requiero es 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, ...
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

... determinado tiempo por ejemplo: @ 5, 5 BITMAP oBmp2 FILENAME "c:\conteo\logo.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 ...
by servicomver
Mon May 11, 2020 9:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Actualizar en un BMP
Replies: 3
Views: 461

Re: New FWH 19.03

... says, till they are reset either by another call to Say() method with a different color and bkmode or explicitly changed by SetTextColor() / SetBkMode(). In other words, calling Say() with a text color, switches the color for the current and all subsequent says, rather than using the color ...
by nageswaragunupudi
Thu Apr 11, 2019 2:11 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New FWH 19.03
Replies: 37
Views: 4955

Re: an image on btnbmp and other

... DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color,color2 ) LOCAL hFontOld:= SelectObject( hDC, hFont ) LOCAL nBkOld := SetBkMode( hDC, nBkMode ) SetTextColor( hDC, color ) setBkColor( hDC, color2 ) DrawText( hDC, cText, { nTop, nLeft, nTop+nWidth, nLeft+nHeight } ) SelectObject( ...
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

... FUNCTION DrawText2( hDC, hFont, nBkMode, cText, nTop, nLeft, nWidth, nHeight,color ) LOCAL hFontOld:= SelectObject( hDC, hFont ) LOCAL nBkOld := SetBkMode( hDC, nBkMode ) SetTextColor( hDC, color ) DrawText( hDC, cText, { nTop, nLeft, nTop+nWidth, nLeft+nHeight } ) SelectObject( hDC, 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: 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: 6333

Re: New Class : TSayjustified

Antonio Linares wrote:Have you tried with SetBkMode( hDC, TRANSPARENT ) ?



on method Painttext antolin used SetBkMode( hDC, 1 ) i think perhaps it not need drawpback

but sometimes I have problem with fonts on win 7

do you Know the Antolin mail ? I wish ash some questions ...
by Silvio.Falconi
Tue Apr 12, 2016 9:18 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: New Class : TSayjustified
Replies: 4
Views: 1144

Re: New Class : TSayjustified

Have you tried with SetBkMode( hDC, TRANSPARENT ) ?
by Antonio Linares
Mon Apr 11, 2016 8:51 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: New Class : TSayjustified
Replies: 4
Views: 1144

Re: Colocar Negrilla en mitad del texto

... oFont := ::oPrn:oFont DEFAULT nBkMode := 1 DEFAULT nPad := 0 IF oFont != nil oFont:Activate( ::oPrn:hDCOut ) ENDIF // 1,2 transparent or Opaque SetbkMode( ::oPrn:hDCOut, nBkMode ) IF nClrText != NIL #IFDEF __HARBOUR__ SetTextColor( ::oPrn:hDCOut, nClrText ) #ELSE SetTextCol( ::oPrn:hDCOut, nClrText ...
by Otto
Fri Jul 24, 2015 9:35 am
 
Forum: EasyReport, EasyDialog y EasyPreview
Topic: Colocar Negrilla en mitad del texto
Replies: 19
Views: 8463

Ayuda con clase TPrinter

... nI:=Len(cText)+1 nP++ ENDIF NEXT nI IF nP>=Len(cText)-1 nP:=1 ENDIF ENDDO ENDIF ENDIF if oFont != nil oFont:Activate( ::hDCOut ) endif SetbkMode( ::hDCOut, nBkMode ) // 1,2 transparent or Opaque if nClrText != nil SetTextColor( ::hDCOut, nClrText ) endif Do Case Case nPad == PAD_LEFT ...
by TOTOVIOTTI
Fri Mar 06, 2015 9:58 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con clase TPrinter
Replies: 11
Views: 1093

A question about using TEXTOUT on different images.

... oTitle1:nShadow := 0 oTitle1:aGrdBack := {} oTitle1:lTransparent := .T. @ 1, 1 TITLETEXT OF oTitle1 TEXT TIME() FONT oFont3 COLOR nPenColor //SetBkMode( hMemDC, 1 ) //SetTextColor( hMemDC, nPenColor ) //TextOut( hMemDC, aPoints[1][1], aPoints[1][2], TIME() ) //SelectObject ( hMemDC, hOldFont ...
by ukoenig
Wed Jun 25, 2014 6:05 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A question about using TEXTOUT on different images.
Replies: 0
Views: 308

Re: Help for extextout

Silvio,
after this line :

hOldFnt := SelectObject( hDc, oFont:hFont )

SetBkMode( hDC, 1 )
SetTextColor( hDC, nPenColor ) // Textcolor
...
...
...
DeleteObject( hOldFnt )


Best regards
Uwe :?:
by ukoenig
Fri Jun 06, 2014 7:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Help for extextout
Replies: 8
Views: 2108
Next

Return to advanced search