Buttonbar color

Buttonbar color

Postby Maurizio » Wed Nov 25, 2020 3: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
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm

Re: Buttonbar color

Postby Silvio.Falconi » Wed Nov 25, 2020 7: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 November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: Buttonbar color

Postby ukoenig » Wed Nov 25, 2020 7: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 :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
ukoenig
 
Posts: 4043
Joined: Wed Dec 19, 2007 6:40 pm
Location: Germany

Re: Buttonbar color

Postby Silvio.Falconi » 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 :D


Sorry, I not understood
Since from 1991/1992 ( fw for clipper Rel. 14.4 - Momos)
I use : FiveWin for Harbour November 2023 - January 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
User avatar
Silvio.Falconi
 
Posts: 7056
Joined: Thu Oct 18, 2012 7:17 pm

Re: Buttonbar color

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42098
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Buttonbar color

Postby Maurizio » Fri Nov 27, 2020 8:28 am

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

Maurizio
User avatar
Maurizio
 
Posts: 824
Joined: Mon Oct 10, 2005 1:29 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 44 guests