Search found 57 matches: setbkmode

Return to advanced search

... LOCAL nLine := IF(EMPTY(oRep:nDataLine),1,oRep:nDataLine) IF oRep:oShdBrush == NIL DEFINE BRUSH oRep:oShdBrush COLOR oRep:nClrShadow ENDIF SetBkMode(oRep:oDevice:hDCOut,1) oRep:oDevice:FillRect( {oRep:nRow + 1,; oRep:aCols[1],; oRep:nRow + 1 + oRep:aDataHeight[nLine],; oRep:aCols[nCols] ...
by Armando
Thu Aug 02, 2007 3:16 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Lineas de separacion en un Report
Replies: 18
Views: 4637

... oWnd MAXIMIZED ON PAINT ( _miTxt(hDC) ) function _miTxt( hDC ) Local oFont DEFINE FONT oFont NAME "ROMAN" SIZE 0,-12 BOLD oFont:Activate( hDC ) SetBkMode(hDC,1) SetTextColor(hDC,CLR_BLUE) DrawText(hDC,"SysCtrl Software",{10, 20, 500, 600}, nOr( 1, 4 ) ) RETURN NIL Espero te sirva Saludos...
by sysctrl2
Thu Jun 28, 2007 6:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Brush... pero de TEXTO ?
Replies: 8
Views: 2430

... &lb ); FillRect( lpdis->hDC, &lpdis->rcItem, hBrush ); DeleteObject( hBrush ); SetBkColor( lpdis->hDC, nClrMenu ); SetBkMode( lpdis->hDC, TRANSPARENT ); SetTextColor( lpdis->hDC, nClrMenuTxt); if( lpdis->itemState & ODS_SELECTED && ! ( lpdis->itemState ...
by saviotti
Fri May 18, 2007 2:31 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error ao atualizar para FWH 7.04
Replies: 29
Views: 10090

... := cOldCAption nLenText := GetTextWidth( hDC, ::cCaption , If( ::oFont != nil, ::oFont:hFont, 0 ) ) IF nLenText > ::nWidth() hDC = ::hDC SetBkMode( hDc, 1 ) SetTextColor( hDC,::nClrText ) SelectObject( hDC, If( ::oFont != nil, ::oFont:hFont, 0 ) ) nTxtHeight := Max(14, GetTextHeight( ...
by Maurizio
Mon Apr 02, 2007 4:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Multiline in TBtnBmp and color in TreeView
Replies: 6
Views: 1570

... BRUSH oBrush COLOR RGB( nColor, nColor, nColor ) FillRect( hDC, aRect, oBrush:hBrush ) RELEASE BRUSH oBrush aRect[ 1 ] += 3 nColor -= 1 NEXT nI SetBkMode( hDC, 1 ) SetTextColor( hDC, CLR_WHITE ) DrawText(hDC, "© Miguel Salas",{oWnd:nHeight - 105, oWnd:nWidth - 135, oWnd:nHeight - 10, oWnd:nWidth ...
by Miguel Salas
Sun Apr 01, 2007 2:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ADSISSHARED,ADSISREADONLY,ISSHARED,ISREADONLY EN TDBFH
Replies: 22
Views: 6702

... nOldClrText, nOldClrPane nOldClrText:=SetTextColor(hDC,nClrText) if nClrPane<>nil nOldClrPane:=SetBkColor(hDC,nClrPane) else nOldBkMode:=SetBkMode(hDC,1) endif hOldFont:=SelectObject(hDC,oFont:hFont) TextOut(hDC,Y,X,cPrompt,Len(cPrompt)) SelectObject(hDC,hOldFont) if nClrPane<>nil ...
by Raymundo Islas M.
Mon Mar 12, 2007 2:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Texto vertical en un dialogo...
Replies: 2
Views: 759

Elías,

SetBkMode() se usa para el color de fondo al utilizar algunas funciones de pintado del GDI de Windows. A que le quieres cambiar el color de fondo ?

Para una ventana, diálogo y algunos controles, puedes usar oWnd:SetColor( nClrFore, nClrBack )
by Antonio Linares
Mon Sep 11, 2006 8:42 pm
 
Forum: FiveWin para Pocket PC
Topic: color de fondo...
Replies: 1
Views: 556

Scrolling Text

... ENDIF RETURN NIL FUNCTION SCROLLMESSAGE(cMESSAGE) LOCAL hDC LOCAL nOldFont LOCAL hPen LOCAL hOldPen IF lADVERTISE * hDC:=oSCROLLBMP:hDC * SetBkMode(hDC, TRANSPARENT) * TextOut(hDC, 5, 100,cMESSAGE) nSCROLLCOL+=5 IF nSCROLLCOL > 1300 nSCROLLCOL:=-500 ENDIF hDC := oSCROLLBMP:hDC nOldFont ...
by byron.hopp
Tue May 23, 2006 12:29 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Scrolling Text
Replies: 4
Views: 1204

... nOldClrText, nOldClrPane nOldClrText:=SetTextColor(hDC,nClrText) if nClrPane<>nil nOldClrPane:=SetBkColor(hDC,nClrPane) else nOldBkMode:=SetBkMode(hDC,1) endif hOldFont:=SelectObject(hDC,oFont:hFont) TextOut(hDC,Y,X,cPrompt,Len(cPrompt)) SelectObject(hDC,hOldFont) if nClrPane<>nil ...
by Raymundo Islas M.
Sun Apr 23, 2006 10:33 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Texto vertical
Replies: 4
Views: 990

I have solved the problem

... := left oRect:nTop := top oRect:nRight := aData[1] - right - ::nXoffset - ::nXoffset oRect:nBottom := aData[2] - bottom - ::nYoffset - ::nYoffset SetBkMode( ::hDCOut, 1 ) PlayEMF( ::hDCOut, hMeta, oRect:cBuffer , .T. ) DeleteEnhMetafile( hMeta ) RestoreDC( ::hDCOut ) Return nil DLL32 FUNCTION ...
by vensanto
Fri Jan 06, 2006 11:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How reduce the size of metafile in printer
Replies: 1
Views: 927

Jose Luis:

Se te olvido:

SetBkMode(oWndc:dc,0) para hacer el texto transparente

o

SetBkMode(oWndc:dc,1) para hacerlo con opaco
by R.F.
Fri Dec 16, 2005 11:49 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner texto sobre Bitmaps
Replies: 10
Views: 2356

Amigos, ninguna forma fucionó!

SetBkMode( oBitmap:hDC, 1 )
TextOut( oBitmap:hDC, 1, 1, "PROBANDO EL TEXTO" )
DrawText( oBitmap:hDC, "OTRA PRUEBA DEL TEXTO", { 1,1,500,500 } )


Alguna otra alternativa ???
by VeRCE
Fri Dec 16, 2005 10:05 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Poner texto sobre Bitmaps
Replies: 10
Views: 2356
Previous

Return to advanced search