Buttonbar color

Post Reply
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Buttonbar color

Post by Maurizio »

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
User avatar
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Buttonbar color

Post by Silvio.Falconi »

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) } } ) }
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
ukoenig
Posts: 3981
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany
Contact:

Re: Buttonbar color

Post by ukoenig »

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 :D
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
Silvio.Falconi
Posts: 4956
Joined: Thu Oct 18, 2012 7:17 pm

Re: Buttonbar color

Post by Silvio.Falconi »

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 :D
Sorry, I not understood
I use : FiveWin for Harbour August 2020 (Revision) - Harbour 3.2.0dev (r1712141320) - Bcc7.30 - xMate ver. 1.15.3 - PellesC
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Buttonbar color

Post by Antonio Linares »

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
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: Buttonbar color

Post by Maurizio »

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

Maurizio
Post Reply