Search found 31 matches: nrgbcolor

Return to advanced search

Re: Numeric alignment with oPrn:SayText( )

Dear Tim,

> Also do we have a color selection popup that we can use for the values ?

ChooseColor( [ nInitialRGBColor ] ) --> nRGBColor
by Antonio Linares
Fri May 19, 2023 8:09 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 534

Re: Child OF oWnd

... 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}, {HFONT, 1242174205}, {HFONTOLD, 0}, {LBOLD, .F.}, {LITALIC, ...
by Jimmy
Thu Nov 10, 2022 5:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 344

A slider solution to adjust the color brightness ?

... oBmp:GetDC() ) LOCAL hBmp := ReadBitmap( 0, "Picker.bmp" ) // the basic gradient bmp LOCAL hOldBmp := SelectObject( hDC, hBmp ) LOCAL nRGBColor := GetPixel( hDC, nCol, nRow ) SelectObject( hDC, hOldBmp ) DeleteObject( hBmp ) DeleteDC( hDC ) oBmp:ReleaseDC() RETURN nRGBColor best regards ...
by ukoenig
Thu Jun 03, 2021 7:25 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: A slider solution to adjust the color brightness ?
Replies: 2
Views: 475

Re: Evaluate whether a color value is dark or light

The result ( switchung from white to black ) is nearly the same some colors with only a difference of 1 colorstep From calculation nRGBColor := 0 nRed := nRGBRed( nValRGB0 ) nGreen := nRGBGreen( nValRGB0 ) nBlue := nRGBBlue( nValRGB0 ) IF 0.3*nRed + 0.6*nGreen + 0.1*nBlue < 128 nRGBColor ...
by ukoenig
Mon Feb 15, 2021 9:13 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Evaluate whether a color value is dark or light
Replies: 9
Views: 838

Re: Buttonbar color

Maurizio,

You may solve it this way for all your buttonbars:

DEFINE BUTTONBAR ... COLOR ButtonBarColor()

...

function ButtonBarColor()

return nRGBColor
by Antonio Linares
Thu Nov 26, 2020 12:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Buttonbar color
Replies: 5
Views: 490

Re: chooseFont

... paramter to show only effect, where I can found an help for this ? I saw on source code choosefont can have these parameters // aPreviousFont, @nRGBColor, hPrinterDC, nFlags --> aNewFont I not found the possibility to show effect( StrikeOut and Underline ) some one can help me pls ? So I ...
by Silvio.Falconi
Fri Nov 06, 2020 9:42 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: chooseFont
Replies: 3
Views: 551

Re: chooseFont

No
this give me also the color and other effect

local aFont, nRGBColor := 0
aFont := ChooseFont( , @nRGBColor )
MsgInfo( nRGBColor )
by Silvio.Falconi
Tue Nov 03, 2020 3:43 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: chooseFont
Replies: 3
Views: 551

Re: XBROWSE Border on cells

... on top nColPos := oBrw:nColSel oSay[3]:Refresh() oSay[4]:Refresh() IIF( nBorder = 1,CELL_BORDER( oBrw, hDC, nRowPos, nColPos, nOption, nPenPos,; nRGBColor, nPensize, nRound, nTranpL, lCol ), NIL ) RETURN NIL > You can download the new source and running exe http://www.pflegeplus.com/DOWNLOADS/Border4.zip ...
by ukoenig
Wed Jun 05, 2019 6:07 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 4131

Re: XBROWSE Border on cells

... a border on cellclick The border is painted with : oBrw:bPainted := < |hDC| CELL_BORDER( oBrw, hDC, nColRow, nColPos, nOption, nPosition,; nRGBColor, nPensize, nRound, nTranpL, lCol ) RETURN NIL > the new position the border has to be painted : oBrw:bChange := { || nColPos := oBrw:SelectedCol():nCreationOrder, ...
by ukoenig
Tue Apr 16, 2019 7:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 4131

Re: 3 problems with touch.prg from the fwh/samples

... ::nWidth - 2, ::aClrGradBack ) ... //----------------------------------------------------------------------------// METHOD DrawEllipse( hDC, nRGBColor, n ) CLASS TRBtn local hOldBrush := SelectObject( hDC, GetStockObject( NULL_BRUSH ) ) local hPen := CreatePen( hDC, 1, nRGBColor ) DEFAULT ...
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: Calcular color con brillo

FWH has inbuilt functions RGBTOHSL() and HSLTORGB()

Usage:
RGBTOHSL( nRGBColor )
or
RGBTOHSL( nRed, nGreen, nBlue )
or
RGBTOHSL( { nRed, nGreen, nBlue )

------> { nHue, nSatuation, nLuminence }

HSLTORGB( { h, s, l } ) --> { nRed, nGreen, nBlue, nRGB }
by nageswaragunupudi
Fri Dec 30, 2016 8:20 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: Calcular color con brillo
Replies: 4
Views: 1335

BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad

... Expressed in Hex: "AARRGGBB" For quick usage FWH provides nARGB() function Usage: nARGB( nAlpha, nRed, nGreen, nBlue ) or nARGB( nAlpha, nRGBColor ) Extensions to Gradient Array: A valid Gradient array is a multi-dimensional Array, each element being an array defining a single gradient. ...
by nageswaragunupudi
Mon May 16, 2016 10:45 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad
Replies: 1
Views: 655

Re: Color with Transparency

James,

FWH provides a function LightColor( nScale, nRGBColor ) --> nRGBLightColor

There are samples of its use in Class TGraph
by Antonio Linares
Sat Mar 19, 2016 9:19 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Color with Transparency
Replies: 8
Views: 1560

New FTDN February 2016 (FWH 16.02)

... is enabled) (e) Improvement: Fast Edit now works with MarqueeStyle MARQSTYLE_HIGHLROWRC also. (f) New DATA oBrw:nColorBox Default CLR_BLACK (nRGBColor or hPen or Codeblock returning same. Evaluated with Col object) Used to draw oCol:Box() when Marqueestyle is MARQSTYLE_SOLIDCELL or MARQSTYLE_HIGHLROWRC ...
by Antonio Linares
Tue Mar 01, 2016 9:15 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN February 2016 (FWH 16.02)
Replies: 2
Views: 1311

Re: New FTDN January/Enero 2016 (FWH 16.01)

... ARGB format 0xAARRGGBB * New function nARGB(...) --> nARGB constant. Syntax: 1. nARGB( nAlpha, nRed, nGreen, nBlue ) 2. nARGB( nAlpha, nRGBcolor ) 3. nARGB( nRGBcolor ) // Assumes nAlpha as 255 * Implementation of GDI+ At present, BMPs and ICO (files and resources) are read by classic ...
by Antonio Linares
Fri Jan 29, 2016 8:48 am
 
Forum: WhatsNew / Novedades
Topic: New FTDN January/Enero 2016 (FWH 16.01)
Replies: 3
Views: 2153
Next

Return to advanced search