Search found 93 matches: getclientrect

Return to advanced search

Re: FWH1905: Watermark behind XBrowse

... to add a < resize-function > for the image :?: aImage := oWnd:ReadImage( cBackImage, , .t. ) :bPaintBack := < |Self| FillRect( ::hDC, GetClientRect( ::hWnd ), ::oBrush:hBrush ) // MsgAlert( FW_ValToExp( ::DataRect():aRect ) ) // returns the array of the used painting area -> { 23, ...
by ukoenig
Thu Apr 29, 2021 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH1905: Watermark behind XBrowse
Replies: 4
Views: 1087

Re: XBROWSE transparente

... {|| aOrg := SetBrushOrgEx( ::hDC, nBmpWidth( ::oWnd:oBrush:hBitmap ) - ::nLeft, nBmpHeight( ::oWnd:oBrush:hBitmap ) - ::nTop ), FillRect( ::hDC, GetClientRect( ::hWnd ), ::oWnd:oBrush:hBrush ), SetBrushOrgEx( ::hDC, aOrg[ 1 ], aOrg[ 2 ] ) } Aparentemente en el método Paint(), el dato ::lTransparent ...
by Modesto
Thu Feb 11, 2021 1:29 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE transparente
Replies: 4
Views: 530

Re: ZOOM IN and ZOOM OUT

I tried making local aRect:= GetClientRect(oBtn:hWnd) FW_SayText( hDC, ; ltrim( str( ncella ) ), ; { aRect[1], aRect[2]+5 ,aRect[3]-10,aRect[4]-20 },oBold, CLR_WHITE, nARGB(255, colororange) , .f. ) https://i.postimg.cc/65sLbh1W/nu.png ...
by Silvio.Falconi
Fri Apr 10, 2020 3:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: ZOOM IN and ZOOM OUT
Replies: 2
Views: 454

Re: A METRO image-background without FREEIMAGE ?

... 1 ) it doesn't work for a METRO-image-background DEFINE METROPANEL oMetro OF oWnd TITLE "Stammdaten" ; COLOR aVal[8], CLR_BLUE aRect := GETCLIENTRECT( oMetro:hWnd ) aImage := oMetro:ReadImage( cImage, , .t. ) oMetro:DrawImage( aImage, aRect, nil, 1 ) a working solution // metro image-background ...
by nageswaragunupudi
Mon Sep 09, 2019 4:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: A METRO image-background without FREEIMAGE ?
Replies: 5
Views: 954

A METRO image-background without FREEIMAGE ?

... 1 ) it doesn't work for a METRO-image-background DEFINE METROPANEL oMetro OF oWnd TITLE "Stammdaten" ; COLOR aVal[8], CLR_BLUE aRect := GETCLIENTRECT( oMetro:hWnd ) aImage := oMetro:ReadImage( cImage, , .t. ) oMetro:DrawImage( aImage, aRect, nil, 1 ) a working solution // metro image-background ...
by ukoenig
Sat Sep 07, 2019 3:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A METRO image-background without FREEIMAGE ?
Replies: 5
Views: 954

Re: resize a position with fw_drawimage

//------------- BMP-Brush ----------- FUNCTION DRAW_BMP( hDC, oBitmap, aColors, nColorSel ) LOCAL oBMPBrush, aGrad LOCAL aRect := GETCLIENTRECT( oBitmap:hWnd ) IF nColorSel = 1 aGrad := { { .5, CLR_WHITE, aColors[2] }, { .5, aColors[2], CLR_BLACK } } ELSE aGrad := { { .5, CLR_WHITE, aColors[4] ...
by ukoenig
Mon May 20, 2019 9:14 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a position with fw_drawimage
Replies: 12
Views: 1571

Re: resize a position with fw_drawimage

... here https://i.postimg.cc/RCL5Fnsc/uiui.png How I can resolve it ? I thinked to calculate the rect of btnbmp with Local arrayBtn:= GetClientRect (oBtn) but then I not Know how change the exactly position for that symbol I hope U understand now
by Silvio.Falconi
Wed May 15, 2019 4:47 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a position with fw_drawimage
Replies: 12
Views: 1571

resize a position with fw_drawimage

... } ) If the first Image is resize (more big or more small) how I can recalculate the position of the second image ? I 'mtrying... Local arrayBtn:= GetClientRect (oBtn) FW_DrawImage( hDC, "BTN_PNG_NOTE", { ; arrayBtn[1]+35,; arrayBtn[2]+30,; arrayBtn[3]+50,; arrayBtn[4]+50 } ) but not ...
by Silvio.Falconi
Tue May 14, 2019 9:10 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: resize a position with fw_drawimage
Replies: 12
Views: 1571

Re: How to use GDIPLUS -> NewGradientBrush ?

... := Graphics():New( oWnd:hDC ) LOCAL oGraphics3 := Graphics():New( oWnd:hDC ) LOCAL oGraphics4 := Graphics():New( oWnd:hDC ) LOCAL aRect := GETCLIENTRECT( oWnd:hWnd ), oPen1, oPen2 oGraphics1:DrawImage( oImage1, aRect[1] + 150 , aRect[2] + 250 , 200, 200 ) oGraphics1:destroy() oPen1 := Pen():New( ...
by ukoenig
Sun Apr 07, 2019 1:02 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to use GDIPLUS -> NewGradientBrush ?
Replies: 11
Views: 1755

Re: How to get the coordinates of a child window?

... if it is true, because it's not very clear explained here: https://docs.microsoft.com/en-us/windows/desktop/api/winuser/nf-winuser-getclientrect Retrieves the coordinates of a window's client area. The client coordinates specify the upper-left and lower-right corners of the client ...
by frose
Wed Feb 06, 2019 8:06 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to get the coordinates of a child window?
Replies: 5
Views: 800

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

URGENT HELP !!! xbrowse error

... NOBORDER ; FONT oFntBrow STYLE 2015 .... ACTIVATE DIALOG oDlgMesas ; ON INIT ( SetTotals(cScoNumDoc), oBrwConsu:SetFocus() ) ; ON PAINT ( aRct := GetClientRect( oDlgMesas:hWnd ), ; GradColor(oDlgMesas:hDC, aRct, CLR_WHITE, LightColor(100, RGB( 216, 230, 246 )) )); CENTERED VALID (DestroyBtns( ...
by Silvio.Falconi
Mon May 29, 2017 11:30 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: URGENT HELP !!! xbrowse error
Replies: 9
Views: 1650

Re: ribbonbar windows 10

... ResizeWndMain())} my resize function oApp():oBar is a ribbonbar Function ResizeWndMain() local aClient if oApp():oDlg != NIL aClient := GetClientRect (oApp():oWndMain:hWnd ) oApp():oDlg:SetSize( aClient[4], aClient[3] - oApp():oBar:nHeight - oApp():oWndMain:oMsgBar:nHeight ) oApp():oDlg:Refresh() ...
by Silvio.Falconi
Sat Apr 29, 2017 11:06 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ribbonbar windows 10
Replies: 21
Views: 3393

Re: ribbonbar windows 10

... I click then it insert a space from tab and the dialog activated and I not Know How refresh the dialog to change the size I tried with aClient := GetClientRect (oWnd:hWnd ) and the setsize but it not refresh http://www.iispascalcomiforti.it/wp-content/uploads/2017/04/nnnn.jpg
by Silvio.Falconi
Sat Apr 29, 2017 10:19 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: ribbonbar windows 10
Replies: 21
Views: 3393

Re: EJECUTAR UN .EXE

... SYSREFRESH() nLoop += 1 ENDDO // Ocultando la calculadora ShowWindow( ::hwndcalc, 0 ) // Recupera el ancho y alto del área cliente //aRect := GetClientRect( ::hwndcalc ) // Redimensiona el picturebox al ancho y alto del programa //::ocontainer:nWidth := ( aRect[4] - aRect[2] ) + 25 //::ocontainer:nHeight ...
by Claudio Leiva
Mon Mar 27, 2017 9:10 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: EJECUTAR UN .EXE
Replies: 13
Views: 2242
Next

Return to advanced search