Search found 34 matches: nrgbcolor

Searched query: nrgbcolor

by Antonio Linares
Fri Jan 17, 2025 10:45 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Using new Class TDeepSeek for documenting
Replies: 29
Views: 4832

Re: Using new Class TDeepSeek for documenting

... String)
- **Description**: The style of the brush (e.g., "HORIZONTAL", "VERTICAL", "CROSS", etc.). This is used for hatch brushes.

7. **`nRGBColor`**
- **Type**: Numeric
- **Description**: The RGB color value used for solid or hatch brushes.

8. **`cBmpFile`**
- **Type**: Character ...
by Antonio Linares
Thu Aug 08, 2024 11:50 am
Forum: WhatsNew / Novedades
Topic: New FTDN July/Julio 2024 (FWH 24.07)
Replies: 8
Views: 8224

Re: New FTDN July/Julio 2024 (FWH 24.07)

... de código. El código de esta función parece correcto aunque todavía estamos haciendo pruebas
con ella.

* Nuevo: Nueva función nRGB2Array( nRGBColor ). Devuelve una matriz con los valores RGB { nRed, nGreen, nBlue }.

* Nuevo: Nuevo método Image( [nType], [aCropRect] ) --> pImage (puntero de ...
by Antonio Linares
Mon Aug 05, 2024 4:14 pm
Forum: WhatsNew / Novedades
Topic: New FTDN July/Julio 2024 (FWH 24.07)
Replies: 8
Views: 8224

New FTDN July/Julio 2024 (FWH 24.07)

... process its messages using a codeblock. The code of this function seems ok
thughwe re still doing tests using it.

* New: function nRGB2Array( nRGBColor ) return an array with the RGB values { nRed, nGreen, nBlue }

* New: TWindow method Image( [nType], [aCropRect] ) --> pImage (gdi+ image pointer ...
by Antonio Linares
Fri May 19, 2023 8:09 am
Forum: FiveWin for Harbour/xHarbour
Topic: Numeric alignment with oPrn:SayText( )
Replies: 8
Views: 1598

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 Jimmy
Thu Nov 10, 2022 5:44 am
Forum: FiveWin for Harbour/xHarbour
Topic: Child OF oWnd
Replies: 7
Views: 745

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, .F ...
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: 558

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

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 Antonio Linares
Thu Nov 26, 2020 12:41 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Buttonbar color
Replies: 5
Views: 616

Re: Buttonbar color

Maurizio,

You may solve it this way for all your buttonbars:

DEFINE BUTTONBAR ... COLOR ButtonBarColor()

...

function ButtonBarColor()

return nRGBColor
by Silvio.Falconi
Fri Nov 06, 2020 9:42 am
Forum: FiveWin for Harbour/xHarbour
Topic: chooseFont
Replies: 3
Views: 649

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
Tue Nov 03, 2020 3:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: chooseFont
Replies: 3
Views: 649

Re: chooseFont

No
this give me also the color and other effect

local aFont, nRGBColor := 0
aFont := ChooseFont( , @nRGBColor )
MsgInfo( nRGBColor )
by ukoenig
Wed Jun 05, 2019 6:07 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 5173

Re: XBROWSE Border on cells

... for record-display 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

m

regards
Uwe
by ukoenig
Tue Apr 16, 2019 7:40 pm
Forum: FiveWin for Harbour/xHarbour
Topic: XBROWSE Border on cells
Replies: 27
Views: 5173

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

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 n ...
by nageswaragunupudi
Fri Dec 30, 2016 8:20 am
Forum: FiveWin para Harbour/xHarbour
Topic: Calcular color con brillo
Replies: 4
Views: 1468

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
Mon May 16, 2016 10:45 am
Forum: FiveWin for Harbour/xHarbour
Topic: BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad
Replies: 1
Views: 715

BTNBMP 16.04 : Translucent buttons, Textured buttons, HGrad

... number. 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.
Now ...