Search found 40 matches: createpen

Return to advanced search

Re: Another for Btnbmp

... 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 ) DeleteObject( hPen )
by Otto
Tue Mar 26, 2024 12:31 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Another for Btnbmp
Replies: 26
Views: 4958

Re: cyclometric circle

... 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: 3028

Re: ExtCreatePen

... lo visto PS_COSMETIC sólo pinta líneas solidas de un pixel de ancho. El color habrá que establecerlo con SetDCPenColor() o algo así porque con ExtCreatePen sólo se pinta en negro (al menos a mi). Pero no es problema que para eso utilizo el CreatePen() de toda la vida. Muchas gracias.
by antolin
Thu Sep 09, 2021 10:36 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: ExtCreatePen
Replies: 10
Views: 1196

Re: Cambiar el borde a un Get

Es muy interesante la funcionalidad que queres hacer.
En la clase TGraph hay metodos que te pueden ser de utilidad
METHOD DrawBox( nTop, nLeft, nBottom, nRight, nColor )
METHOD DrawLine( nY, nX, nHigh, nWidth, nColor, lDotted )
...
MESSAGE CreatePen METHOD _CreatePen()
METHOD DeletePen()
by cmsoft
Sat Jan 23, 2021 5:04 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?

The result using this function.
Maybe the bottomline is still missing :?:

:hBtnShadowPen := CreatePen( PS_SOLID, 4, 255) // pensize = 4 and red lines

Image

best regards
Uwe :D
by ukoenig
Thu Dec 24, 2020 9:39 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change color of line in Header and Footer? *Work Now*
Replies: 10
Views: 1145

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

... to much time, can You try adding this line :?: It seems the gray header / footer-lines will be black WITH OBJECT oBrw .. .. :hBtnShadowPen := CreatePen( PS_SOLID, 1, CLR_BLACK ) .. .. :CreateFromCode() END http://www.service-fivewin.de/IMAGES/Lines5.jpg best regards Uwe :D
by ukoenig
Wed Dec 23, 2020 5:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: How to change color of line in Header and Footer? *Work Now*
Replies: 10
Views: 1145

XBROWSE memory leak - SOLVED

... do case case nStyle == LINESTYLE_BLACK .or. nStyle == LINESTYLE_RAISED .or. nStyle == LINESTYLE_INSET ::hRowPen := CreatePen( If( ::nColorPen == nil, PS_NULL, PS_SOLID ), ::nSizePen, ::nColorPen ) case nStyle == LINESTYLE_DARKGRAY ::hRowPen := CreatePen( PS_SOLID, ...
by MGA
Wed Sep 02, 2020 9:46 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBROWSE memory leak - SOLVED
Replies: 3
Views: 759

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 - 1 , hPen ) SelectObject( ::hDC, hOldBrush ) DeleteObject( ...
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: A problem with GETCURSORPOS() and widescreen-monitor ?

... local a := GETCURSORPOS() // Left Top local nColor := GETPIXEL( hDeskTop, a[2] * 1.25 , a[1] * 1.25 ) local hDC := oDlgChild:GETDC() local hPen := CREATEPEN( PS_SOLID, 1.5, CLR_HRED ) local hOldPen local nTop, nLeft local nWidth, nHeight nTop := 5 nLeft := 5 nWidth := 90 nHeight := 90 MOVETO( hDC, ...
by ukoenig
Sat Nov 18, 2017 7:16 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4912

Re: A problem with GETCURSORPOS() and widescreen-monitor ?

... local hDeskTop := GETDC(0) local a := GETCURSORPOS() local nColor := GETPIXEL( hDeskTop, a[2], a[1] ) local hDC := oDlg:GETDC() local hPen := CREATEPEN( PS_SOLID, 1.5, CLR_HRED ) local hOldPen local nTop, nLeft local nWidth, nHeight Isn't it possible to modify the function GETCURSORPOS() to ...
by ukoenig
Tue Nov 14, 2017 5:32 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A problem with GETCURSORPOS() and widescreen-monitor ?
Replies: 24
Views: 4912

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

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( ...
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

Re: problema con SetFont

... hBrocha ) MsgInfo("Parece que no se destruyo") ENDIF // Aqui se dibujan los bordes.... // UNO. se cargan los lapices... hPen1 := CreatePen(PS_SOLID, 1, aClrDias[ A][ 1]) //Claro nrgb(235,235,210) hPen2 := CreatePen(PS_SOLID, 1, aClrDias[ A][ 3]) //Oscuro nrgb(160,160, 75) // Se ...
by MOISES
Mon Feb 23, 2015 1:54 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: problema con SetFont
Replies: 17
Views: 4733

Re: Drawing on a TImage and save (revamped) :-)

Define on top : nPensize := 50 nPenColor := 255 hPen := CreatePen( 0, nPensize, nPenColor ) // ----- STATIC FUNCTION DRAWIMG( oImg, hDC, hPen, nPensize, nPenColor ) LOCAL nWidth := oImg:nWidth() LOCAL nHeight := oImg:nHeight() LOCAL hMemDC := CREATECOMPATIBLEDC( ...
by ukoenig
Sun Apr 06, 2014 12:27 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Drawing on a TImage and save (revamped) :-) [Solved]
Replies: 41
Views: 8377

Re: XBrowse y Grupo de Columnas

... minimo. En mi version es usado para crear : bClrHeader is an array of 3 possible colors minimum. In my version is used to create: hHeaderPen := CreatePen( PS_SOLID, 1, aColors[ Min( 3, Len( aColors ) ) ] ) Pero hay que cambiar hGrayPen y hWhitePen. Son los que utilizan DrawVert y DrawHorz But ...
by cnavarro
Wed Aug 21, 2013 11:34 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBrowse y Grupo de Columnas
Replies: 24
Views: 9464
Next

Return to advanced search