How to change color of line in Header and Footer? *Work Now*

How to change color of line in Header and Footer? *Work Now*

Postby dutch » Mon Dec 21, 2020 10:16 am

I try to change ::nHeadDividerStyle but it doesn't effect.
Image

Thank you in advance for any help and ideas.
Dutch
Last edited by dutch on Thu Dec 24, 2020 1:49 pm, edited 1 time in total.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change color of line in Header and Footer?

Postby ukoenig » Tue Dec 22, 2020 11:19 pm

Dutch,

You can paint lines with any size and colors inside header and footer
The problem : these lines are NOT the column-lines I think You want to use.

Image

just search inside samples for these functions

DrawHorz( hDC, ::nHeaderHeight - 3, 0, ::BrwWidth(), hPen )
DrawHorz( hDC, ::nHeaderHeight - 1, 0, ::BrwWidth(), hPen )

DrawVert( hDC, 170, 2, ::nHeaderHeight - 1, hPen )

regards
Uwe :D
Last edited by ukoenig on Wed Dec 23, 2020 5:52 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to change color of line in Header and Footer?

Postby dutch » Wed Dec 23, 2020 7:31 am

Dear Uwe,

Thank you so much but it is quite difficult to change all xbrowse in all screens.
ukoenig wrote:Dutch,

You can paint lines with any size and colors inside header and footer
The problem : these lines are NOT the column-lines I think You want to use.

Image

just search inside samples for these functions

DrawHorz( hDC, ::nHeaderHeight - 3, 0, ::BrwWidth(), hPen )
DrawHorz( hDC, ::nHeaderHeight - 1, 0, ::BrwWidth(), hPen )

DrawVert( hDC, 170, 2, ::nHeaderHeight - 1, hPen )

regards
Uwe :D
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change color of line in Header and Footer?

Postby ukoenig » Wed Dec 23, 2020 8:56 am

Dutch,

will that be to much work adding these needed two lines to a xBrowse :?:
Otherwise I can create the column-solution for vertical lines related to the col-positions
calling BrwHeader(,, and BrwFooter(...

:bPaintHeader := { | brw, hDC, aCols, nLast, hWhitePen, hGrayPen, hColPen | BrwHeader ;
( brw, hDC, aCols, nLast, hWhitePen, hGrayPen, hColPen ) }

:bPaintFooter := { | brw, hDC, aCols, nLast, nGridWidth, nBrwHeight, hWhitePen, hGrayPen | BrwFooter ;
( brw, hDC, aCols, nLast, nGridWidth, nBrwHeight, hWhitePen, hGrayPen ) }


best regards
Uwe :?:
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to change color of line in Header and Footer?

Postby dutch » Wed Dec 23, 2020 10:17 am

Dear Uwe,

I'm interesting, how to change? How to make BrwHeader() ?

Thanks in advance.
ukoenig wrote:Dutch,

will that be to much work adding these needed two lines to a xBrowse :?:
Otherwise I can create the column-solution for vertical lines related to the col-positions
calling BrwHeader(,, and BrwFooter(...

:bPaintHeader := { | brw, hDC, aCols, nLast, hWhitePen, hGrayPen, hColPen | BrwHeader ;
( brw, hDC, aCols, nLast, hWhitePen, hGrayPen, hColPen ) }

:bPaintFooter := { | brw, hDC, aCols, nLast, nGridWidth, nBrwHeight, hWhitePen, hGrayPen | BrwFooter ;
( brw, hDC, aCols, nLast, nGridWidth, nBrwHeight, hWhitePen, hGrayPen ) }


best regards
Uwe :?:
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change color of line in Header and Footer?

Postby ukoenig » Wed Dec 23, 2020 5:39 pm

Dear Dutch,

before spending to much time,
can You try adding this line :?:
It seems the gray header / footer-lines will be black

WITH OBJECT oBrw
..
..
:hBtnShadowPen := CreatePen( PS_SOLID, 1, CLR_BLACK )
..
..
:CreateFromCode()
END

Image

best regards
Uwe :D
Last edited by ukoenig on Thu Dec 24, 2020 9:39 am, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to change color of line in Header and Footer?

Postby cnavarro » Wed Dec 23, 2020 6:05 pm

Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: How to change color of line in Header and Footer?

Postby ukoenig » Thu Dec 24, 2020 9:39 am

The result using this function.
Maybe the bottomline is still missing :?:

:hBtnShadowPen := CreatePen( PS_SOLID, 4, 255) // pensize = 4 and red lines

Image

best regards
Uwe :D
Last edited by ukoenig on Mon Jan 25, 2021 1:01 pm, edited 1 time in total.
Since 1995 ( the first release of FW 1.9 )
i work with FW.
If you have any questions about special functions, maybe i can help.
User avatar
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: How to change color of line in Header and Footer?

Postby dutch » Thu Dec 24, 2020 1:49 pm

Dear Uwe & Navarro,

It works now, I use 3rd parameter of bClrHeader as below

oBrw:bClrHeader := { ||{ CLR_GRAY, nRGB( 242, 242, 242 ), CLR_HGRAY } }
Imagerestaurants near carolina beach
Thank you both of you.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

Re: How to change color of line in Header and Footer? *Work Now*

Postby nageswaragunupudi » Fri Dec 25, 2020 4:47 pm

oBrw:bClrHeader := { ||{ CLR_GRAY, nRGB( 242, 242, 242 ), CLR_HGRAY } }


Right.
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10656
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: How to change color of line in Header and Footer? *Work Now*

Postby dutch » Fri Dec 25, 2020 5:49 pm

Dear Master Rao,

Thanks a lot.
nageswaragunupudi wrote:
oBrw:bClrHeader := { ||{ CLR_GRAY, nRGB( 242, 242, 242 ), CLR_HGRAY } }


Right.
Regards,
Dutch

FWH 19.01 / xHarbour Simplex 1.2.3 / BCC73 / Pelles C / UEStudio
FWPPC 10.02 / Harbour for PPC (FTDN)
ADS V.9 / MySql / MariaDB
R&R 12 Infinity / Crystal Report XI R2
(Thailand)
User avatar
dutch
 
Posts: 1543
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 101 guests