Search found 19 matches: holdpen

Return to advanced search

PaintBorder of Btnbmp ( fwteam)

... CLASS TBtnBmp local nAdjustBorder := 0 local nWidth, nAdj, oCli local nRound := If( ::lRound, ::nRound, 0 ) local hWhitePen, hGrayPen, hOldPen add these line 1752 //if ! ::lPressedif !   ::lMOver         hGrayPen  := CreatePen (PS_SOLID,1,::nClrBorder)         hWhitePen ...
by Silvio.Falconi
Sat Jun 10, 2023 4:17 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: PaintBorder of Btnbmp ( fwteam)
Replies: 1
Views: 148

Re: New BTNBMP more different

... the string on bold METHOD PaintPopupSection() CLASS TBtnBmp local nWidth, nHeight, hDC local hBlackBrush, hOldBrush local hDarkPen, hLightPen, hOldPen if ::oPopup != nil .and. GetClassName( GetParent( Self:hWnd ) ) = "TBAR" this for erase the arrow on the left of btnbmp I use this ...
by Silvio.Falconi
Sat Feb 02, 2019 11:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: New BTNBMP more different
Replies: 5
Views: 881

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

... 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, nLeft-1, nTop-1) LINETO( hDC, nLeft + nWidth+1, ...
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: 4894

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

... 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 show the correct cursorposition-area ? regards ...
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: 4894

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

... aBoton, aTitBoton, nAnchoBoton) return NIL STATIC FUNCTION DibujaDias( hDC, oFont, aDias, aXY, aClrDias, bFestivos) Local HBROCHAANTERIOR, HOLDPEN Local A, aFESTIVOS:=ARRAY(0), nCOLOR:=0 Local hBrocha Local hPen1 Local hPen2 DEFAULT bFestivos := {|| ARRAY(0) } aFESTIVOS:=EVAL(bFestivos) ...
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) :-)

... ) oImg:Refresh() RETURN NIL // ------------------- STATIC FUNCTION DO_LINES( hMemDC, hPen, nPensize, nPenColor ) LOCAL aPoints[2][2], hOldPen aPoints[1] := { 100, 200 } // Start x, y aPoints[2] := { 100, 400 } // End x, y hOldPen := SelectObject( hMemDC, hPen ) MoveTo( hMemDC, aPoints[ ...
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: 8372

Problemas al crear la libreria TWBROWSE

... lJustify; #else WORD wLen = hb_arrayLen( pAtext ); PHB_ITEM uElem = hb_itemNew( NULL ); #endif WORD wType, wcLen; LONG lValue; char * cValue; HPEN hOldPen, hPen; BITMAP bmp; WORD wRow, wCol; LONG lColor ; HBRUSH hBrush; LONG lTextColorOld = -1 ; // CeSoTech LONG lBkColorOld = -1 ; // CeSoTech PCLIPVAR ...
by ander7319
Fri Jan 04, 2013 9:55 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Problemas al crear la libreria TWBROWSE
Replies: 6
Views: 2853

Re: Load, show in dialog, interactively crop and save cropped

... the sub-dialog STATIC FUNCTION DRAWBOX( nTOP, nLEFT, hDC1, nRIGHT, nBOTTOM, nPEN, nCOLOR ) LOCAL hPen := CREATEPEN( PS_SOLID, nPEN, nColor ) LOCAL hOldPen := SELECTOBJECT( hDC1, hPen ) MOVETO( hDC1, nLEFT, nTOP ) LINETO( hDC1, nRIGHT, nTOP ) LINETO( hDC1, nRIGHT, nBOTTOM ) LINETO( hDC1, nLEFT, ...
by ukoenig
Thu Jun 28, 2012 6:50 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Load, show in dialog, interactively crop and save cropped
Replies: 31
Views: 9423

Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01

... lJustify; #else WORD wLen = hb_arrayLen( pAtext ); PHB_ITEM uElem = hb_itemNew( NULL ); #endif WORD wType, wcLen; LONG lValue; char * cValue; HPEN hOldPen, hPen; BITMAP bmp; WORD wRow, wCol; LONG lColor ; HBRUSH hBrush; LONG lTextColorOld = -1 ; // CeSoTech LONG lBkColorOld = -1 ; // CeSoTech PCLIPVAR ...
by alex_cyr
Sat Jul 09, 2011 2:11 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Error al compilar TWBROWSE xHarbour build 1.2.1 y FWH 11.01
Replies: 7
Views: 2629

Re: Border around GET

... ) STATIC FUNCTION DRAWBOX ( nTOP, nLEFT, hDC, nLONG, nHIGHT, nPEN, nCOLOR ) LOCAL hPen := CREATEPEN( PS_SOLID, nPEN, nColor ) LOCAL hOldPen := SELECTOBJECT( hDC, hPen ) MOVETO( hDC, nTOP, nLEFT ) LINETO( hDC, nLong, 0 ) LINETO( hDC, nLONG, nHIGHT ) LINETO( hDC, 0, nHIGHT ) LINETO( ...
by ukoenig
Wed May 19, 2010 12:03 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Border around GET
Replies: 46
Views: 13671

Pregunta esta clase dibuja la regla a cm

... Super:End() RETURN (Nil) //----------------------------------------------------------------------------// METHOD Paint() CLASS TRegla local hOldPen, n := 1,pos,j,posmm local hLightPen,hOldFont local texto,finmm WNDRAISED(::hWnd,::hDC) hOldPen = SelectObject( ::hDC, ::oPen:hPen ) hOldFont= ...
by Vladimir Zorrilla
Fri Aug 21, 2009 5:40 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Pregunta esta clase dibuja la regla a cm
Replies: 0
Views: 1171

... ::nRGB1 = nRGB1 ::nRGB2 = nRGB2 //----------------------------------------------------------------------------// METHOD Paint() CLASS TBar local hOldPen, n := 1 local hDarkPen, hLightPen local oCtrl local aInfo := ::DispBegin() /* if ::l2007 Gradient( ::hDC, { 0, 0, ::nHeight / 4, ::nWidth },; ...
by FranciscoA
Wed Oct 15, 2008 12:09 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: No encuentro las mejoras hechas a xbrowse por franciscoA ??
Replies: 17
Views: 4442

... nIndent, // unStyle, aItemStyles, aiBmp, aBitmaps, aMasks ) { LPDRAWITEMSTRUCT lp = ( LPDRAWITEMSTRUCT ) _parnl( 1 ); RECT tempRct; HPEN hDotPen, hOldPen; BOOL firstDraw = TRUE; int centerX, centerY, x, y; COLORREF rgbFore, rgbBack; BYTE szName[ 30 ]; int nLevel = _parni( 3 ); int nLevel1 = nLevel; ...
by alex_cyr
Sat Jul 26, 2008 5:51 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: error al compilar TREEDRAW.C
Replies: 6
Views: 1471

... , oGrayBrush) ACTIVATE WINDOW oWnd Return nil static Function DrawPolygon( hDC, aPoints, nColor ) local n local nLen := len( aPoints ) local hPen, hOldPen if nColor != nil hPen := CreatePen( PS_SOLID,1,nColor) hOldPen := SelectObject( hDC, hPen ) endif Moveto( hDC, aPoints[1,1], aPoints[1,2]) for ...
by Silvio
Tue Nov 20, 2007 9:19 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: draw with poligon
Replies: 6
Views: 1367
Next

Return to advanced search