Search found 129 matches: hbrush

Return to advanced search

Re: How to set Brush size?

... area). https://i.postimg.cc/KvrVc26h/1683365520661.jpg DEFINE BRUSH oBh COLOR 0xF0F0F0 FillRect(oDlg:hDc, {100,100,200,200}, oBh:hBrush) oDlg:Refresh()
by dutch
Sat May 06, 2023 9:37 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to set Brush size?
Replies: 4
Views: 257

Re: How to set Brush size?

DEFINE BRUSH oBh COLOR 0xF0F0F0

FillRect(oDlg:hDc, {100,100,200,200}, oBh:hBrush)

oDlg:Refresh()
by Natter
Fri May 05, 2023 3:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to set Brush size?
Replies: 4
Views: 257

Re: WBrowse - color fondo cabecera y Congelar columnas- consulta

... José Concha, desde aquí mí código <--- if n == nColuAct --> (si es orden natural o si es otro oBrw variable nColuAct debe venir en cero) hBrush = CreateSolidBrush( CLR_BRWHS ) FillRect( hDC, { nTop, nLeft, nBottom, nRight }, hBrush ) DeleteObject( hBrush ) SetBkColor( hDC, CLR_BRWHS ) ...
by José
Tue Mar 21, 2023 2:33 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: WBrowse - color fondo cabecera y Congelar columnas- consulta
Replies: 6
Views: 616

Re: Brush on btnbmp with color

... oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007 aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) } WITH OBJECT aBtnBrow[1] :nClrBorder := nRgb(218,214,179)// border color :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) ...
by Silvio.Falconi
Fri Mar 03, 2023 11:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Brush on btnbmp with color
Replies: 8
Views: 679

Re: Brush on btnbmp with color

... oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007 aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) } WITH OBJECT aBtnBrow[1] :nClrBorder := nRgb(218,214,179)// border color :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) ...
by karinha
Fri Feb 10, 2023 2:38 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Brush on btnbmp with color
Replies: 8
Views: 679

Re: Brush on btnbmp with color

... oBrw:nWidth-44.4 BTNBMP aBtnBrow[1] SIZE 20,20 PIXEL OF oDlg NOROUND 2007 aBtnBrow[1]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) } WITH OBJECT aBtnBrow[1] :nClrBorder := nRgb(218,214,179)// border color :bColorMap := { || { { nRgb( 245,244,234), nRgb(218,214,179) ...
by Silvio.Falconi
Fri Feb 10, 2023 10:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Brush on btnbmp with color
Replies: 8
Views: 679

Re: btnbmp state

... oBrowse:nWidth-44.4 BTNBMP aBtnBrow[3] SIZE 12,10.3 PIXEL OF oDlg NOROUND 2007 aBtnBrow[3]:bClrGrad := { |lInvert| If( lInvert, aBru[ 2 ]:hBrush, aBru[ 1 ]:hBrush ) } aBtnBrow[3]:nClrBorder := { || (IIF(aBtnBrow[3]:lMOver,,CLR_GRAY)) } aBtnBrow[3]:disable()
by Silvio.Falconi
Thu Feb 09, 2023 9:33 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: btnbmp state
Replies: 2
Views: 200

Re: Child OF oWnd

... {TWINDOW:NLEFT, 10}, {NBOTTOM, 893}, {NRIGHT, 649.00}, {NSTYLE, 1342177280}, {NCLRPANE, 16777215}, {NCLRTEXT, 0}, {ACONTROLS, {}}, {OBRUSH, {{HBRUSH, 9437200}, {HBITMAP, 0}, {HBMPORGL, 0}, {NCOUNT, 6}, {NRGBCOLOR, 16777215}, {LSYSTEM, .T.}, {USOURCE, CLR_WHITE}}}, {OFONT, {{CFACENAME, TAHOMA}, ...
by Jimmy
Thu Nov 10, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 344

Re: How to fill a xBrowse-cell with a real image-BRUSH ?

I got it working now
format change and the image adjusted to cellsize

hBmp = ReadBitmap( 0, c_path1 + cData )
hBrush = CreatePatternBrush( hBmp )


Image

regards
Uwe
by ukoenig
Sat Jul 17, 2021 5:48 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to fill a xBrowse-cell with a real image-BRUSH ?
Replies: 4
Views: 676

Re: How to fill a xBrowse-cell with a real image-BRUSH ?

... the images on the lefthandside I display using :aCols[ I ]:bPaintText := { | ..... and GDI-functions that was the reason thinking about ::hBrush = GdiPlusNewTextureBrush( oGdiBmp:hbmp ) :!: like using for the background-images : oImage := GDIBmp():new( c_path + cData ) oGraphics:DrawImage( ...
by ukoenig
Thu Jul 15, 2021 1:53 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to fill a xBrowse-cell with a real image-BRUSH ?
Replies: 4
Views: 676

How to fill a xBrowse-cell with a real image-BRUSH ?

... 3 ) a stretched brush-image doesn't show the real brushpreview maybe using a GDI-solution :?: //METHOD NewTextureBrush( oGdiBmp ) CLASS Brush //::hBrush = GdiPlusNewTextureBrush( oGdiBmp:hbmp ) //return Self http://www.service-fivewin.de/images/Xbrbrush1.jpg regards Uwe
by ukoenig
Thu Jul 15, 2021 7:23 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to fill a xBrowse-cell with a real image-BRUSH ?
Replies: 4
Views: 676

Re: tScrollPanel and Pelles C

... from start: 0 hours 0 mins 1 secs Error occurred at: 06-05-2021, 12:55:32 Error description: Error BASE/1004 Class: 'NIL' has no exported method: HBRUSH Args: [ 1] = U Stack Calls =========== Called from: => HBRUSH( 0 ) Called from: .\source\classes\SCRLPANL.PRG => TSCROLLPANEL:PAINT( 415 ...
by damianodec
Thu May 06, 2021 11:01 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: tScrollPanel and Pelles C
Replies: 7
Views: 1184

Re: FWH1905: Watermark behind XBrowse

... > 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, 24, 456, 783 } // { top, left, ...
by ukoenig
Thu Apr 29, 2021 8:43 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: FWH1905: Watermark behind XBrowse
Replies: 4
Views: 1088

Re: problema con DrawBitmap() usando tCodeBars

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

Re: XBROWSE transparente

... ::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 toma dato negativo y ejecuta el ...
by Modesto
Thu Feb 11, 2021 1:29 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE transparente
Replies: 4
Views: 531
Next

Return to advanced search