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

Post Reply
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

Post by dutch »

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
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

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

Post by ukoenig »

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
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

Post by dutch »

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
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

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

Post by ukoenig »

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
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

Post by dutch »

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
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

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

Post by ukoenig »

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
cnavarro
Posts: 5792
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

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

Post by cnavarro »

C. Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
Si alguien te dice que algo no se puede hacer, recuerda que esta hablando de sus limitaciones, no de las tuyas.
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

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

Post by ukoenig »

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
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

Post by dutch »

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
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

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

Post by nageswaragunupudi »

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

G. N. Rao.
Hyderabad, India
User avatar
dutch
Posts: 1395
Joined: Fri Oct 07, 2005 5:56 pm
Location: Thailand

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

Post by dutch »

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)
Post Reply