Search found 170 matches: getdc

Return to advanced search

Re: Another for Btnbmp

... you can specify the brush or pen color. Otto local hPen, oCli := ::GetCliRect() hPen = CreatePen( PS_SOLID, 1, nRGB( 255, 0, 0 ) ) WndBoxClr( ::GetDC(), 1, 1, oCli:nBottom - 2, oCli:nRight - 2, hPen ) DeleteObject( hPen )
by Otto
Tue Mar 26, 2024 12:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4959

Re: How to find out the IDs of controls and types?

... Even removing the themes still doesn't work. These functions work perfectly on the fivewin ComboBox and RadioButtons controls: SetWindowTheme(GetDc(lc_aCtrlsAllApi[lc_iFor,3]), "", "" ) Ctl3DLook(GetDc(lc_aCtrlsAllApi[lc_iFor,3]), .F.) EnumChildWindows( f_oDlgContainer:hWnd,;  ...
by Giovany Vecchi
Wed Jan 10, 2024 5:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to find out the IDs of controls and types?
Replies: 16
Views: 1848

Re: Recortar foto tomada con la camara web

... ), ( nX1 := nil, nX2 := nil ) ) } oImg:bMMoved = { | nRow, nCol, hDC | If( nX1 != nil,; ( oImg:Refresh(), SysRefresh(), WndBoxClr( hDC := oImg:GetDC(), nX1, nY1, nX2 := nRow, nY2 := nCol, oPen:hPen ), oImg:ReleaseDC() ),) } Ese código te debe permitir seleccionar el rectángulo de la imagen ...
by Antonio Linares
Tue May 23, 2023 4:13 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Recortar foto tomada con la camara web
Replies: 7
Views: 499

Re: Imprimir texto RTF en columna

Gracias por responder, este lo saque de acá: https://forums.fivetechsupport.com/viewtopic.php?f=6&t=36873&p=219931&hilit=GetDc&sid=e323d240ef5f9fcc22118338c11803d3#p220010 y poder controlar también el salto de hoja. También estuve probando: amargins := {120, 2480, 4251, 3500} ...
by jpcavagnaro
Fri Mar 03, 2023 9:49 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Imprimir texto RTF en columna
Replies: 3
Views: 467

Re: Wbrowse with the black screem

... na linha destacada: METHOD DispBegin( lCreateDC ) CLASS TWBrowse local hDC, aInfo, hOldDC:= ::hDC DEFAULT lCreateDC:= .F. if lCreateDC hDC:= GetDC( ::hWnd ) else hDC:= ::hDC endif aInfo:= FWDispBegin( ::hWnd, hDC ) ::hDC:= aInfo[3] // hDC de Memoria !!! return { aInfo, if(lCreateDC, hDC, ...
by Giba_Fro
Mon Feb 06, 2023 5:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wbrowse with the black screem
Replies: 9
Views: 519

Wbrowse with the black screem

... onde eh o problema: METHOD DispBegin ( lCreateDC ) CLASS TWBrowse local hDC, aInfo, hOldDC:= ::hDC DEFAULT lCreateDC:= .F. if lCreateDC hDC:= GetDC( ::hWnd ) else hDC:= ::hDC endif aInfo:= FWDispBegin( ::hWnd, hDC ) ::hDC:= aInfo[3] // hDC de Memoria !!! return { aInfo, if(lCreateDC, hDC, ...
by Giba_Fro
Mon Jan 23, 2023 11:15 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Wbrowse with the black screem
Replies: 9
Views: 519

signatur.prg How can I know if the user has signed or not?

... DoDraw( hDC, y, x , lPaint ) } oSig:bLClicked := { | x, y, z | DoDraw( hDC, y, x, lPaint := .T. ) } ACTIVATE DIALOG oDlg CENTER ; ON INIT ( hDC := GetDC( oSig:hWnd ) ) ; VALID ( ReleaseDC( oSig:hWnd, hDC ), .T. ) return nil static function DoDraw( hDc, x, y, lPaint ) if ! lPaint MoveTo( hDC, x, ...
by MGA
Fri Nov 11, 2022 3:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: signatur.prg How can I know if the user has signed or not?
Replies: 5
Views: 397

GRAPHPRN

... Error description: Error BASE/1004 Class: 'NIL' has no exported method: GETDC Args: [ 1] = U Stack Calls =========== Called from: => GETDC( 0 ) Called from: .\source\classes\TGRAPH.PRG => TGRAPH:DRAWPIE( 2194 ) Called ...
by Marco Augusto
Fri Oct 28, 2022 1:00 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: GRAPHPRN
Replies: 3
Views: 484

Re: Gluing images

#define SRCCOPY 13369376 local 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 ...
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 ?

... next using the nrow position from the slider to get the color FUNCTION GETCOLOR( nRow, nCol, oBmp ) LOCAL hDC := CreateCompatibleDC( oBmp:GetDC() ) LOCAL hBmp := ReadBitmap( 0, "Picker.bmp" ) // the basic gradient bmp LOCAL hOldBmp := SelectObject( hDC, hBmp ) LOCAL nRGBColor ...
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

How to change the xBrowse-bkstyle at runtime ?

... 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 ----------------------- another ...
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: Change color in a bmp

... := nCol,; FILLCOLOR(oImg, nPickRow, nPickCol, nColorSet ) } // ----------- FUNCTION FILLCOLOR( oImg, nRow, nCol, nColor ) LOCAL hDC := oImg:getDc() FloodFill( hDC, nRow, nCol, nil, nColor ) oImg:SaveToBmp( "A.bmp" ) // save the last result :!: oImg:ReleaseDC() RETURN NIL The original ...
by ukoenig
Tue Mar 23, 2021 12:00 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Change color in a bmp
Replies: 25
Views: 2547

Re: problema con DrawBitmap() usando tCodeBars

... cCode ) ::SetFlags( nFlags ) return Self //--------------------------------------// METHOD Build() CLASS TCodeBars local hBmpOld local hDCDesk := GetDC( GetDesktopWindow() ) local hDCMem := CreateCompatibleDC( hDCDesk ) local hBrush := CreateSolidBrush( 0 ) local hBack := CreateSolidBrush( CLR_WHITE ...
by rterraz
Mon Mar 15, 2021 12:02 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con DrawBitmap() usando tCodeBars
Replies: 10
Views: 1023

Return-value of the selected Windows-scalefactor ?

... The problem GETCURSORPOS() works only with selecting 100 % scalefactor other selections must be adjusted with a defined factor : local hDeskTop := GETDC(0) local a := GETCURSORPOS() // Left Top local nColor := GETPIXEL( hDeskTop, a[2] * nMonScale , a[1] * nMonScale ) http://www.service-fivewin.de/IMAGES/scale1.jpg ...
by ukoenig
Tue Jan 26, 2021 9:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Return-value of the selected Windows-scalefactor ?
Replies: 2
Views: 344
Next

Return to advanced search