Search found 97 matches: selectobject

Return to advanced search

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: 3024

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: 758

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: 758

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: 679

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: 475

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: 657

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: 1022

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: 287

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: 3795

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: 3884

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: 3884

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: 6330

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: 856

Re: Device context to file

... siz:=GetWndRect(hDeskTop) hDC := CreateCompatibleDC( hDeskTop ) hBmp := CreateCompatibleBitMap( hDC, siz[4]-siz[2], siz[3]-siz[1]) hOldBmp:=SelectObject(hDc, hBmp) BitBlt(hDc, 0, 0, siz[4]-siz[2], siz[3]-siz[1], hDeskTop, 0, 0, 13369376) //SCRCOPY oImg:=GdiBmp():New() oImg:hBmp:=Gdip_FromHBitmap(hBmp,, ...
by Natter
Tue Apr 05, 2016 1:33 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Device context to file
Replies: 4
Views: 862

HELP FOR SHOW A LINE ON A DIALOG

DrawLine( 0,300 )... function DrawLine( x, y ) Local hdc:= oDlgMain:GetDc() Local hPen := CreatePen( 0, 1, CLR_BLUE ) Local hOldPen := SelectObject( oDlgMain:hDc, hPen ) MoveTo( oDlgMain:hDC, x, y) LineTo( oDlgMain:hDC, x, y ) SelectObject( oDlgMain:hDc, hOldPen ) DeleteObject( hPen ) oDlgMain:ReleaseDc() ...
by Silvio.Falconi
Tue Dec 01, 2015 9:55 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: HELP FOR SHOW A LINE ON A DIALOG
Replies: 3
Views: 757
Next

Return to advanced search