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 ...
Search found 25 matches: ncolor1
Searched query: ncolor1
- Mon Jan 09, 2023 12:26 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: alternate columns colors
- Replies: 0
- Views: 335
- Tue May 31, 2022 8:10 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: colorize xbrowse on specific col/row
- Replies: 5
- Views: 601
colorize xbrowse on specific col/row
... 46;png
If I make
For n= 1 to Len(aPos)
nRow:= aPos[n][1]
nCol:= aPos[n][2]
oBrw1:aCols[nCol]:bClrStd := {|| { CLR_BLACK,IIf(oBrw1:nArrayAt=nRow, nColor1,CLR_WHITE) } }
next
it colorize only the last nRow , so I think it need to make a codeblock but I not Know How make it
Can U help me pls
If I make
For n= 1 to Len(aPos)
nRow:= aPos[n][1]
nCol:= aPos[n][2]
oBrw1:aCols[nCol]:bClrStd := {|| { CLR_BLACK,IIf(oBrw1:nArrayAt=nRow, nColor1,CLR_WHITE) } }
next
it colorize only the last nRow , so I think it need to make a codeblock but I not Know How make it
Can U help me pls
- Thu Mar 10, 2022 8:31 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: search highest digit in the array
- Replies: 7
- Views: 713
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: 1880
Colorized cell of xbrowse
... CLR_BLACK, ColorCell( 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 ...
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 ...
- Fri Nov 16, 2018 8:17 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Tgroup not transparent in w10
- Replies: 3
- Views: 884
Re: Tgroup not transparent in w10
... Gradient, 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 ...
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 ...
- Wed Feb 07, 2018 6:24 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Mr. Rao's samples collection.
- Replies: 139
- Views: 28554
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
Thank you Uwe. Probably my version of FWH1701 that does not support the command ...
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 ...
- Wed Feb 07, 2018 5:59 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Mr. Rao's samples collection.
- Replies: 139
- Views: 28554
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![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Exclamation :!:](./images/smilies/icon_exclaim.gif)
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
![Very Happy :D](./images/smilies/icon_biggrin.gif)
- Fri Oct 09, 2015 3:06 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Resize gradient with Dialog Resize
- Replies: 9
- Views: 2390
Re: Resize gradient with Dialog Resize
... Yes, 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: 8032
Re: Logo background screen blurring on Windows SEVEN 64 or 32bit
... T. vertical or horizontal
// cBrush := "Brush.bmp" Brush
// cImage := "image.jpg" Image
// 2 = gradient selected
// D_BACKGRD( oDlg, nStyle, nColor1, nColor2, nMove, lDirect, cBrush, cImage )
ACTIVATE DIALOG oDlg ;
ON INIT D_BACKGRD( oDlg, 2, 116443068, 10899511, 0.5, "Brush.bmp", "image.jpg ...
// cBrush := "Brush.bmp" Brush
// cImage := "image.jpg" Image
// 2 = gradient selected
// D_BACKGRD( oDlg, nStyle, nColor1, nColor2, nMove, lDirect, cBrush, cImage )
ACTIVATE DIALOG oDlg ;
ON INIT D_BACKGRD( oDlg, 2, 116443068, 10899511, 0.5, "Brush.bmp", "image.jpg ...
- Tue Feb 26, 2013 11:03 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: BackGround Painting (SOLVED)
- Replies: 14
- Views: 5695
Re: BackGround Painting
... PIXEL ;
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 ...
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 ...
- Fri Jul 20, 2012 1:06 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Ayuda con este codigo
- Replies: 1
- Views: 824
Ayuda con este codigo
... 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',SELECT ...
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',SELECT ...
- Sat Jan 14, 2012 11:42 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Image-selector Rel.1.2 UPDATE
- Replies: 1
- Views: 718
Image-selector Rel.1.2 UPDATE
... a Image.
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. ...
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. ...
- Thu Jul 07, 2011 7:47 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: A Problem using : VTitles, Gradient / Base and BtnBmp
- Replies: 3
- Views: 857
A Problem using : VTitles, Gradient / Base and BtnBmp
... would like, 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 ...
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 ...
- Thu Jul 07, 2011 12:14 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: About box
- Replies: 13
- Views: 2990
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
- Fri Apr 29, 2011 10:51 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: New Arrangement of MSGWAIT- ALERT- and YESNO-function
- Replies: 8
- Views: 3987
Re: New Arrangement of MSGWAIT- ALERT- and YESNO-function
... many Calculations.
The calculation is the same in all Functions :
MSG_ALERT(oBrush, ;
oFont1, ;
oFont2, ;
cTitle, ;
cTxt1, ;
cTxt2, ;
cTxt3, ;
nColor1, nColor2, ;
nSpace, nTop, nLeft, ;
cImage1, cImage2)
http://www.pflegeplus.com/pictures/dlgsize.jpg
1. Get the Text-len from ...
The calculation is the same in all Functions :
MSG_ALERT(oBrush, ;
oFont1, ;
oFont2, ;
cTitle, ;
cTxt1, ;
cTxt2, ;
cTxt3, ;
nColor1, nColor2, ;
nSpace, nTop, nLeft, ;
cImage1, cImage2)
http://www.pflegeplus.com/pictures/dlgsize.jpg
1. Get the Text-len from ...