Search found 99 matches: selectobject

Return to advanced search

drawing a circle with FW_Box

... I draw a red circle but the border is allways black...why ? hBrush := CreateSolidBrush(RGB(255, 28, 36)) SelectObject(hDC, hBrush) FW_Box( hDC, { nX, nY, nX + nSize, nY + nSize }, hBrush, hBrush, , 2 ) I tried also with FW_Box( hDC, { nX, nY, nX + nSize, ...
by Silvio.Falconi
Wed Oct 02, 2024 11:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: drawing a circle with FW_Box
Replies: 6
Views: 316

Re: TSBROWSE - TSBUTTON 64 bits

... ) ; ^ ..\SOURCE\FUNCTION\BPAINT.C:95:15: error: assigning to 'HFONT' (aka 'HFONT__ *') from incompatible type 'HGDIOBJ' (aka 'void *') hOldFont = SelectObject( hDC, hFont ) ; ^~~~~~~~~~~~~~~~~~~~~~~~~~ ..\SOURCE\FUNCTION\BPAINT.C:124:15: error: assigning to 'HBRUSH' (aka 'HBRUSH__ *') from incompatible ...
by Cgallegoa
Mon Sep 23, 2024 7:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: TSBROWSE - TSBUTTON 64 bits
Replies: 2
Views: 179

Re: cyclometric circle

... ::bPainted := { |hDC|FloodFill( ::hDC, aPoints [1][1], aPoints [5][1], nil, nColor ) } or local hBru := CreateSolidBrush( nColor ) local hOld := SelectObject( ::hDC, hBru ) local hpen:=CreatePen(0,8,nColor) FillRect( ::hDC, { aPoints [1][1],aPoints [1][2],aPoints [2][1],aPoints [2][2] }, hBru ...
by Silvio.Falconi
Sat Dec 03, 2022 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 5143

Re: oPopUp in class btnbmp

... 1 ) MoveTo( hDC, nWidth - ::nWide_P - 1 + If( ::lPressed, 1, 0 ), 1 ) LineTo( hDC, nWidth - ::nWide_P - 1 + If( ::lPressed, 1, 0 ), nHeight - 1 ) SelectObject( hDC, hDarkPen ) //MoveTo( hDC, nWidth - 13 + If( ::lPressed, 1, 0 ), 1 ) //LineTo( hDC, nWidth - 13 + If( ::lPressed, 1, 0 ), nHeight ...
by Silvio.Falconi
Mon Oct 17, 2022 7:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oPopUp in class btnbmp
Replies: 15
Views: 1335

Re: oPopUp in class btnbmp

... 1 ) MoveTo( hDC, nWidth - ::nWide_P - 1 + If( ::lPressed, 1, 0 ), 1 ) LineTo( hDC, nWidth - ::nWide_P - 1 + If( ::lPressed, 1, 0 ), nHeight - 1 ) SelectObject( hDC, hDarkPen ) //MoveTo( hDC, nWidth - 13 + If( ::lPressed, 1, 0 ), 1 ) //LineTo( hDC, nWidth - 13 + If( ::lPressed, 1, 0 ), nHeight ...
by Maurizio
Mon Oct 17, 2022 6:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: oPopUp in class btnbmp
Replies: 15
Views: 1335

Re: Gluing images

... hDC := oDlg:GetDC() local hDCMem := CreateComtatibleDC( hDC ) local hBitmap := CreateCompatibleBitmap( hDCMem, nWidth, nHeigth ) local hPrev := SelectObject( hDCMem, hBitmap ) local hBmp, hDib now you paint your bitmaps on hDCMem this way: hBmp = ReadBitmap( 0, "name.bmp" ) PalBmpDraw( ...
by Antonio Linares
Tue Oct 12, 2021 5:40 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Gluing images
Replies: 8
Views: 888

A slider solution to adjust the color brightness ?

... ) LOCAL hDC := CreateCompatibleDC( oBmp:GetDC() ) LOCAL hBmp := ReadBitmap( 0, "Picker.bmp" ) // the basic gradient bmp LOCAL hOldBmp := SelectObject( hDC, hBmp ) LOCAL nRGBColor := GetPixel( hDC, nCol, nRow ) SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) DeleteDC( hDC ) oBmp:ReleaseDC() ...
by ukoenig
Thu Jun 03, 2021 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A slider solution to adjust the color brightness ?
Replies: 2
Views: 528

Re: ACTIVATE FONT

Jose Vicente, realmente lo que haces con ese comando es llamar a la function SelectObject( hDC, oFont:hFont ), para seleccionar el font definido cuando creas el font. Particularmente no he tenido necesidad de usarlo referido a un font definido por mi, pero si ...
by cnavarro
Sun Apr 11, 2021 9:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ACTIVATE FONT (SOLUCIONADO)
Replies: 5
Views: 736

Re: problema con DrawBitmap() usando tCodeBars

... CreateSolidBrush( 0 ) local hBack := CreateSolidBrush( CLR_WHITE ) ::hCodeBar = CreateCompatibleBitMap( hDCDesk, ::nWidth, ::nHeight ) hBmpOld = SelectObject( hDCMem, ::hCodeBar ) ::hData := Eval( ::aTypes[ ::nType ][ CODEBAR_BLOCK ] ) ::DefError() FillRect( hDCMem, { 0, 0, ::nHeight, ::nWidth ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1499

Al compiliar sbrowse TSBFUNCS.C me marca errores

... = _parni( 7 ) ; int nHeightSuper = _parni( 8 ) ; HDC hDC = GetDC( hWnd ) ; HFONT hOldFont ; int wMaxRight ; RECT rct ; if( hFont ) hOldFont = SelectObject( hDC, hFont ) ; GetWindowRect( hWnd, &rct ) ; wMaxRight = rct.right; rct.top += ( nHeightHead + nHeightSuper ) + ( wHeight * (wRow ...
by noe aburto
Thu Aug 27, 2020 6:26 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Al compiliar sbrowse TSBFUNCS.C me marca errores
Replies: 1
Views: 313

Re: 3 problems with touch.prg from the fwh/samples

... METHOD DrawEllipse( hDC, nRGBColor, n ) CLASS TRBtn local hOldBrush := SelectObject( hDC, GetStockObject( NULL_BRUSH ) ) local hPen := CreatePen( hDC, 1, nRGBColor ) DEFAULT n := -1 Ellipse( hDC, n, n, ::nWidth - 1 , ::nHeight ...
by Otto
Thu Nov 08, 2018 7:57 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: 3 problems with touch.prg from the fwh/samples
Replies: 18
Views: 4204

Re: an image on btnbmp and other

... ,2, 20, 34, 62,CLR_WHITE, CLR_RED )} FUNCTION 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, ...
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: 4557

Re: an image on btnbmp and other

... + " " ,2, 30, 34, 62, CLR_WHITE )} 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 ...
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: 4557

Re: Ayuda DLL

Antonio buenos dias, gracias por la ayuda Agrego la VM.LIB (xharbour), y me manda estos errorres :( :( Proyecto: Kept5, Entorno: BorlandDLL: [1]:Harbour.Exe Source\Tseguro.prg /m /n /es2 /ki /iP:\32bits\xharbour\include;P:\32bits\FWH\INCLUDE /i /oObj\Tseguro.c xHarbour Compiler build 1.2.1 (SimpLex)...
by ricardog
Thu Aug 31, 2017 2:56 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda DLL
Replies: 24
Views: 7723

Re: Imprimir texto con brush

Gracias Armando, gracias karinha, pero...

Quizá mi cuestión no está bien delimitada.
La cuestión sería ¿ Imprime oPrinter:CmSay() el brush que se tiene seleccionado con SelectObject() ?

A ver si así me he explicado mejor.

Saludos.
by hmpaquito
Mon Oct 10, 2016 5:43 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Imprimir texto con brush (SOLUCIONADO)
Replies: 6
Views: 948
Next

Return to advanced search