FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Buttonbar color
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Buttonbar color

Posted: Wed Nov 25, 2020 03:25 PM

Hello,
we have function like SetDlgGradient which allows you to set the colors of all the dialogs of the project .

There is a function that allows you to do the same for buttonbar ?

Thanks
Maurizio

Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Buttonbar color

Posted: Wed Nov 25, 2020 07:05 PM

DEFINE BUTTONBAR oBar OF oTabella SIZE 70,70 BOTTOM NOBORDER 2010

oBar:bClrGrad := { | lPressed | If( ! lPressed,;
{ { 1, nRgb(233,229,206),nRgb(233,229,206) } },;
{ { 1, nRgb( 245,244,234), nRgb( 245,244,234) } } ) }

Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 4043
Joined: Wed Dec 19, 2007 06:40 PM

Re: Buttonbar color

Posted: Wed Nov 25, 2020 07:28 PM
Silvio,

this is for a single bar.
I think Maurizio is looking for something like a global solution
( for ALL bars ) :-)

Maurizio wrote :
we have function like SetDlgGradient which allows you to
set the colors of all the dialogs of the project .

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.
Posts: 7318
Joined: Thu Oct 18, 2012 07:17 PM

Re: Buttonbar color

Posted: Thu Nov 26, 2020 11:46 AM
ukoenig wrote:Silvio,

this is for a single bar.
I think Maurizio is looking for something like a global solution
( for ALL bars ) :-)

Maurizio wrote :
we have function like SetDlgGradient which allows you to
set the colors of all the dialogs of the project .

regards
Uwe :-)


Sorry, I not understood
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)

I use : FiveWin for Harbour March-April 2024 - Harbour 3.2.0dev (harbour_bcc770_32_20240309) - Bcc7.70 - xMate ver. 1.15.3 - PellesC - mail: silvio[dot]falconi[at]gmail[dot]com
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM

Re: Buttonbar color

Posted: Thu Nov 26, 2020 12:41 PM

Maurizio,

You may solve it this way for all your buttonbars:

DEFINE BUTTONBAR ... COLOR ButtonBarColor()

...

function ButtonBarColor()

return nRGBColor

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 842
Joined: Mon Oct 10, 2005 01:29 PM

Re: Buttonbar color

Posted: Fri Nov 27, 2020 08:28 AM

Thanks Antonio ,
it wasn't what I thought, but for the moment it's okay .

Maurizio

Continue the discussion