Page 1 of 1

Buttonbar color

Posted: Wed Nov 25, 2020 3:25 pm
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

Re: Buttonbar color

Posted: Wed Nov 25, 2020 7:05 pm
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) } } ) }

Re: Buttonbar color

Posted: Wed Nov 25, 2020 7:28 pm
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

Re: Buttonbar color

Posted: Thu Nov 26, 2020 11:46 am
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

Re: Buttonbar color

Posted: Thu Nov 26, 2020 12:41 pm
by Antonio Linares
Maurizio,

You may solve it this way for all your buttonbars:

DEFINE BUTTONBAR ... COLOR ButtonBarColor()

...

function ButtonBarColor()

return nRGBColor

Re: Buttonbar color

Posted: Fri Nov 27, 2020 8:28 am
by Maurizio
Thanks Antonio ,
it wasn't what I thought, but for the moment it's okay .

Maurizio