... with the specified dimensions and colors. The bitmap is used to create the brush.
---
### METHODS
#### 1. **`New(nWidth, nHeight, nColor, nColor2, lVGrad)`**
- **Type**: Constructor
- **Parameters**:
- `nWidth`: The width of the bitmap.
- `nHeight`: The height of the bitmap.
- `nColor ...
Search found 26 matches: ncolor2
Searched query: ncolor2
- Fri Jan 17, 2025 10:46 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Using new Class TDeepSeek for documenting
- Replies: 29
- Views: 5213
- Mon Jan 09, 2023 12:26 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: alternate columns colors
- Replies: 0
- Views: 337
alternate columns colors
coloring alternate rows we can do
oBrw:bClrStd := { || { CLR_BLACK, If( oBrw:KeyNo % 2 == 0, nColor1, nColor2 ) } }
how can we color the columns alternately?
For a sample if I wish colorized only the 4th colomn I made
Function Alternate_Columns(nColor1,oBrw)
local aPos := { { 1, 4 }, { 2, 4 ...
oBrw:bClrStd := { || { CLR_BLACK, If( oBrw:KeyNo % 2 == 0, nColor1, nColor2 ) } }
how can we color the columns alternately?
For a sample if I wish colorized only the 4th colomn I made
Function Alternate_Columns(nColor1,oBrw)
local aPos := { { 1, 4 }, { 2, 4 ...
- Thu Mar 10, 2022 8:31 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: search highest digit in the array
- Replies: 7
- Views: 723
Re: search highest digit in the array
... I made
nRowSelect:=Colorize_Max(oBrw,RGB( 255, 0,0 ),RGB( 252, 235, 220 ))
oBrw:KeyNo:= nRowSelect
static Function Colorize_Max(oBrw,nColor1,nColor2)
local avals:= oBrw:aArraydata
local atest:= aFindMax( aVals )
local nRow:= atest[1]
local nCol:= atest[2]
oBrw:aCols[nCol]:bClrStd ...
nRowSelect:=Colorize_Max(oBrw,RGB( 255, 0,0 ),RGB( 252, 235, 220 ))
oBrw:KeyNo:= nRowSelect
static Function Colorize_Max(oBrw,nColor1,nColor2)
local avals:= oBrw:aArraydata
local atest:= aFindMax( aVals )
local nRow:= atest[1]
local nCol:= atest[2]
oBrw:aCols[nCol]:bClrStd ...
- Fri Mar 04, 2022 10:16 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Colorized cell of xbrowse
- Replies: 13
- Views: 1895
Colorized cell of xbrowse
... oBrw:aRow[ n ]:VALUE ) } }
static function ColorCell( num )
local nColor := GetSysColor( 15 ) //for demo
local nColor1 := CLR_HGREEN
local nColor2 := CLR_HRED
local ncolor3 := GetSysColor( 15 )
/* IF num<3
nColor :=nColor1
elseif num>3
nColor := nColor2
elseif num<9
nColor := nColor3 ...
static function ColorCell( num )
local nColor := GetSysColor( 15 ) //for demo
local nColor1 := CLR_HGREEN
local nColor2 := CLR_HRED
local ncolor3 := GetSysColor( 15 )
/* IF num<3
nColor :=nColor1
elseif num>3
nColor := nColor2
elseif num<9
nColor := nColor3 ...
- Fri Nov 16, 2018 8:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Tgroup not transparent in w10
- Replies: 3
- Views: 886
Re: Tgroup not transparent in w10
... Color )
http://www.pflegeplus.com/IMAGES/FolderGrp.jpg
...
ACTIVATE DIALOG oDlg ;
ON INIT ( DLG_BACK( oDlg, nDStyle, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ), ;
FLD_BACK( oFld, nTColor, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ) )
The ...
http://www.pflegeplus.com/IMAGES/FolderGrp.jpg
...
ACTIVATE DIALOG oDlg ;
ON INIT ( DLG_BACK( oDlg, nDStyle, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ), ;
FLD_BACK( oFld, nTColor, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ) )
The ...
- Wed Feb 07, 2018 6:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Mr. Rao's samples collection.
- Replies: 139
- Views: 28929
Re: Mr. Rao's samples collection.
... 3 is Circle-painting and new
I think Your FWH-version doesn't support it.
circle syntax
IF nStyle = 3 // GRADIENT CIRCLE
aGrad := { nColor1,nColor2 }
DEFINE BRUSH oBrush GRADIENT aGrad
ENDIF
regards
Uwe
Thank you Uwe. Probably my version of FWH1701 that does not support the command. Many ...
I think Your FWH-version doesn't support it.
circle syntax
IF nStyle = 3 // GRADIENT CIRCLE
aGrad := { nColor1,nColor2 }
DEFINE BRUSH oBrush GRADIENT aGrad
ENDIF
regards
Uwe
Thank you Uwe. Probably my version of FWH1701 that does not support the command. Many ...
- Wed Feb 07, 2018 5:59 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Mr. Rao's samples collection.
- Replies: 139
- Views: 28929
Re: Mr. Rao's samples collection.
nStyle 3 is Circle-painting and new
I think Your FWH-version doesn't support it.
circle syntax
IF nStyle = 3 // GRADIENT CIRCLE
aGrad := { nColor1,nColor2 }
DEFINE BRUSH oBrush GRADIENT aGrad
ENDIF
regards
Uwe

I think Your FWH-version doesn't support it.
circle syntax
IF nStyle = 3 // GRADIENT CIRCLE
aGrad := { nColor1,nColor2 }
DEFINE BRUSH oBrush GRADIENT aGrad
ENDIF
regards
Uwe

- Fri Oct 09, 2015 3:06 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Resize gradient with Dialog Resize
- Replies: 9
- Views: 2409
Re: Resize gradient with Dialog Resize
... on startup I use ON INIT
ACTIVATE DIALOG oDlg ;
ON PAINT ABPaint( hDC, 100, 20, oImg:hBitmap, 255 ) ;
ON INIT ( DLG_BACK( oDlg, nDStyle, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ), ;
FLD_BACK( oFld, nTColor, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ...
ACTIVATE DIALOG oDlg ;
ON PAINT ABPaint( hDC, 100, 20, oImg:hBitmap, 255 ) ;
ON INIT ( DLG_BACK( oDlg, nDStyle, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ), ;
FLD_BACK( oFld, nTColor, nColor1, nColor2, lDirect, nGrdPos, nCGrdPos, cBrush, cImage ...
- Mon May 20, 2013 9:11 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Logo background screen blurring on Windows SEVEN 64 or 32bit
- Replies: 31
- Views: 8056
Re: Logo background screen blurring on Windows SEVEN 64 or 32bit
... on Dialog-init like
// nStyle := 1 1=Color, 2 = Gradient, 3 = Brush and 4 = Image
// nColor := 116443068 Color or 1. Calor of gradient
// nColor2 := 10899511 2. Gradient-color
// nMove := 0.5 Color-position
// lDirect := .T. vertical or horizontal
// cBrush := "Brush.bmp" Brush
// cImage ...
// nStyle := 1 1=Color, 2 = Gradient, 3 = Brush and 4 = Image
// nColor := 116443068 Color or 1. Calor of gradient
// nColor2 := 10899511 2. Gradient-color
// nMove := 0.5 Color-position
// lDirect := .T. vertical or horizontal
// cBrush := "Brush.bmp" Brush
// cImage ...
- Tue Feb 26, 2013 11:03 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: BackGround Painting (SOLVED)
- Replies: 14
- Views: 5707
Re: BackGround Painting
... ACTION oDlg3:End()
ACTIVATE DIALOG oDlg3 ;
ON INIT oDlg3:Move(250, 250)
RETURN NIL
// --------
FUNCTION DLG_BACK( oWnd, lDirect, nColor1, nColor2, nMove )
local oBrush
aGrad := { { nMove, nColor1, nColor2 }, { nMove, nColor2, nColor1 } }
hDC = CreateCompatibleDC( oWnd:GetDC() )
hBmp ...
ACTIVATE DIALOG oDlg3 ;
ON INIT oDlg3:Move(250, 250)
RETURN NIL
// --------
FUNCTION DLG_BACK( oWnd, lDirect, nColor1, nColor2, nMove )
local oBrush
aGrad := { { nMove, nColor1, nColor2 }, { nMove, nColor2, nColor1 } }
hDC = CreateCompatibleDC( oWnd:GetDC() )
hBmp ...
- Fri Jul 20, 2012 1:06 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda con este codigo
- Replies: 1
- Views: 829
Ayuda con este codigo
... nRight-230 PIXEL TITLE "Inventario de Armas" NOSYSMENU NOICONIZE NOCAPTION OF oWnd1
SELE INV_EQ
@ 0,0 BROWSE oBrw ALIAS "INV_EQ" OF oWnd2 COLOR nCOLOR2,nCOLOR1
ADD COLUMN TO oBrw DATA FieldWBlock('MODELO',SELECT()) HEADER "MODELO" ALIGN 0,1,1 FIXED
ADD COLUMN TO oBrw DATA FieldWBlock('MACADDRESS ...
SELE INV_EQ
@ 0,0 BROWSE oBrw ALIAS "INV_EQ" OF oWnd2 COLOR nCOLOR2,nCOLOR1
ADD COLUMN TO oBrw DATA FieldWBlock('MODELO',SELECT()) HEADER "MODELO" ALIGN 0,1,1 FIXED
ADD COLUMN TO oBrw DATA FieldWBlock('MACADDRESS ...
- Sat Jan 14, 2012 11:42 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Image-selector Rel.1.2 UPDATE
- Replies: 1
- Views: 719
Image-selector Rel.1.2 UPDATE
... You can change the Dialog-background :
// nStyle
// 1 = Color, 2 = Gradient, 3 = Brush, 4 = Image
// D_BACKGRD( oDlg, nStyle, lDirect, nColor1, nColor2, nMove, cBrush, cImage )
D_BACKGRD( oDlg, 2, .T., 10899511, 16777215, 0.5, "Marble5.bmp", "Fantasy2.jpg" )
http://www.pflegeplus. ...
// nStyle
// 1 = Color, 2 = Gradient, 3 = Brush, 4 = Image
// D_BACKGRD( oDlg, nStyle, lDirect, nColor1, nColor2, nMove, cBrush, cImage )
D_BACKGRD( oDlg, 2, .T., 10899511, 16777215, 0.5, "Marble5.bmp", "Fantasy2.jpg" )
http://www.pflegeplus. ...
- Sun Jul 31, 2011 7:57 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: ExplorerBar with Windows 7 look
- Replies: 30
- Views: 8450
Re: ExplorerBar with Windows 7 look
there're many functions are the same on fwh
sample : DegradaSO( hDC, aRect, nColor2, nColor, .f.) = GradientFill( hDC, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,;
{ { 1, RGB( 220, 235, 252 ), RGB (199, 223, 252) } }, .T. )
we're seeing if tc5imagelist run as our Timglist
sample : DegradaSO( hDC, aRect, nColor2, nColor, .f.) = GradientFill( hDC, aRect[ 1 ] - 2, aRect[ 2 ] - 3, aRect[ 3 ] + 1, aRect[ 4 ] + 5,;
{ { 1, RGB( 220, 235, 252 ), RGB (199, 223, 252) } }, .T. )
we're seeing if tc5imagelist run as our Timglist
- Thu Jul 07, 2011 7:47 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: A Problem using : VTitles, Gradient / Base and BtnBmp
- Replies: 3
- Views: 862
A Problem using : VTitles, Gradient / Base and BtnBmp
... to keep the round Button ).
Otherwise I have to change the Button-class using Gradient-background.
oBar1:aGrdBack := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } }
http://www.pflegeplus.com/pictures/about15.jpg
As soon I select a Gradient-background ...
Otherwise I have to change the Button-class using Gradient-background.
oBar1:aGrdBack := { { nGradPos, nColor1, nColor2 },{ nGradPos, nColor2, nColor1 } }
http://www.pflegeplus.com/pictures/about15.jpg
As soon I select a Gradient-background ...
- Thu Jul 07, 2011 12:14 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: About box
- Replies: 13
- Views: 3006
Re: About box
... Lines needed :
1.
@ nTop, nLeft TITLE oBar1 SIZE nWidth, nHeight OF oContrl TRANSPARENT BORDER BASE SHADOWSIZE 0
2.
oBar1:aGrdBase := { { nGradPos, nColor1, nColor2 } , ;
{ 10 - nGradPos, nColor2, nColor1 } }
http://www.pflegeplus.com/pictures/about14.jpg
Best Regards
Uwe
1.
@ nTop, nLeft TITLE oBar1 SIZE nWidth, nHeight OF oContrl TRANSPARENT BORDER BASE SHADOWSIZE 0
2.
oBar1:aGrdBase := { { nGradPos, nColor1, nColor2 } , ;
{ 10 - nGradPos, nColor2, nColor1 } }
http://www.pflegeplus.com/pictures/about14.jpg
Best Regards
Uwe