Search found 62 matches: hpen

Return to advanced search

Re: Another for Btnbmp

... drawing yourself. You can do this by drawing a rectangle using functions like WndBoxClr, where 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 ...
by Otto
Tue Mar 26, 2024 12:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4862

Re: nYoffset and nXoffset

... printer.prg. METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ; Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,; If( oPen != nil, oPen:hPen, 0 ) ) it's not the problem of oPrn:Box, but I think you have an old version of Tprinter ( printer.prg) , so now the Box method of Tprinter is ...
by Silvio.Falconi
Mon Jan 15, 2024 9:47 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 819

Re: nYoffset and nXoffset

I do not see that method box supports: nXoffset or nYottset.
Look into printer.prg.
METHOD Box( nRow, nCol, nBottom, nRight, oPen ) INLINE ;
Rectangle( ::hDCOut, nRow, nCol, nBottom, nRight,;
If( oPen != nil, oPen:hPen, 0 ) )
by Otto
Mon Jan 15, 2024 9:12 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: nYoffset and nXoffset
Replies: 11
Views: 819

Re: Recortar foto tomada con la camara web

... = { | 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 a salvar. Por favor comprueba si te funciona. Lo próximo ...
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: 493

Re: cyclometric circle

... ::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 ) SelectObject( ::hDC, hOld ) DeleteObject( ...
by Silvio.Falconi
Sat Dec 03, 2022 3:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: cyclometric circle
Replies: 46
Views: 3017

Re: New FTDN April/Abril 2021 (FWH 21.04)

... * Clase TWindow, método Line( top, left, bottom, right, color, size ) Ahora el quinto parámetro "nColor" puede ser también "oPen/hPen". En este caso, el _ parámetro "size" debería ser NIL u omitido. * Corrección: El comando EDITVARS daba errores en tiempo de ejecución ...
by Antonio Linares
Fri Jun 04, 2021 2:15 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2021 (FWH 21.04)
Replies: 8
Views: 1936

New FTDN April/Abril 2021 (FWH 21.04)

... function FW_MemoEdit(). Font leakage fixed. * Window method Line( top, left, bottom, right, color, size ) Now 5th parameter color can also be oPen/hPen, In this case, 6th parm size should be nil or omitted. * Fix: EDITVARS command runtime error (FWH2101 & 2102) with character variables fixed. ...
by Antonio Linares
Mon May 31, 2021 3:53 pm
 
Forum: WhatsNew / Novedades
Topic: New FTDN April/Abril 2021 (FWH 21.04)
Replies: 8
Views: 1936

Re: Bug en TGroup ?

... tengo controles que 'cuelgan' de la MDICHILD no del TGroup. Le estoy dando vueltas. Jugaré con WndBoxClr( ::hDC, nTop, nLeft, nBottom, nRight, hPen ) y un SAY. Son 4 pantallas. Un poco bruto pero con menos riesgo que empezar a modificar controles. Gracias de nuevo.
by FiveWiDi
Sun Feb 28, 2021 5:47 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Bug en TGroup ?
Replies: 2
Views: 254

Re: Cambiar el borde a un Get

... the right function/method! oWnd/oDlg/oCtrl:Box( nTop, nLeft, nBottom, nRight, uBorder, uBrush, aText ) uBorder can be Color constant, or oPen or hPen. Test with Box() Method of TGet Class but don't function.... https://i.ibb.co/XtT0RwL/2021-01-24-16h16-01.png Code: #include 'fivewin.ch'Function ...
by VictorCasajuana
Sun Jan 24, 2021 3:17 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar el borde a un Get *SOLUCIONADO*
Replies: 22
Views: 2282

Re: Cambiar el borde a un Get

Why are you looking in tcalex.prg and tgraph.prg for drawing boxes?
TWindow class has a method Box and is available for every dialog and control too.

oWnd/oDlg/oCtrl:Box( nTop, nLeft, nBottom, nRight, uBorder, uBrush, aText )
uBorder can be Color constant, or oPen or hPen.
by nageswaragunupudi
Sat Jan 23, 2021 5:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Cambiar el borde a un Get *SOLUCIONADO*
Replies: 22
Views: 2282

Re: How to change color of line in Header and Footer?

... just search inside samples for these functions DrawHorz ( hDC, ::nHeaderHeight - 3, 0, ::BrwWidth(), hPen ) DrawHorz( hDC, ::nHeaderHeight - 1, 0, ::BrwWidth(), hPen ) DrawVert ( hDC, 170, 2, ::nHeaderHeight - 1, hPen ) regards Uwe :D
by dutch
Wed Dec 23, 2020 7:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change color of line in Header and Footer? *Work Now*
Replies: 10
Views: 1143

Re: How to change color of line in Header and Footer?

... just search inside samples for these functions DrawHorz ( hDC, ::nHeaderHeight - 3, 0, ::BrwWidth(), hPen ) DrawHorz( hDC, ::nHeaderHeight - 1, 0, ::BrwWidth(), hPen ) DrawVert ( hDC, 170, 2, ::nHeaderHeight - 1, hPen ) regards Uwe :D
by ukoenig
Tue Dec 22, 2020 11:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change color of line in Header and Footer? *Work Now*
Replies: 10
Views: 1143

Re: Printer class question

METHOD Box( nTop, nLeft, nBottom, nRight, ; [Pen], ; // oPen/hPen/nColor/{nColor,nThickness} [Brush], ; // nColor / oBrush [aText], ; // { cText, oFont, nColor } Painted in center cUnits ; // "CM", "MM", "INCHES" ) I tried ...
by nageswaragunupudi
Wed Oct 21, 2020 1:57 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer class question - RESOLVED
Replies: 41
Views: 3344

Re: Printer class question

METHOD Box( nTop, nLeft, nBottom, nRight, ; [Pen], ; // oPen/hPen/nColor/{nColor,nThickness} [Brush], ; // nColor / oBrush [aText], ; // { cText, oFont, nColor } Painted in center cUnits ; // "CM", "MM", "INCHES" ) I tried ...
by Silvio.Falconi
Tue Oct 20, 2020 10:35 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Printer class question - RESOLVED
Replies: 41
Views: 3344

TPRINTER/HARUPDF Pen

If i use the same oPen in tprinter and fwpdf the linewidth of box(...) are different! In tprinter the line are much stronger.
It seems, that box(..) in tprinter not compatible with older versions in case of using a pen-object. If i use oPen:hPen then is ok!
by byte-one
Sat Mar 07, 2020 9:26 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: TPRINTER/HARUPDF Pen
Replies: 3
Views: 869
Next

Return to advanced search