Menu and Buttonbar Colors

Post Reply
dpaterso
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa
Contact:

Menu and Buttonbar Colors

Post by dpaterso »

Good Evening,

Is there any way to change / set the color of MENU and BUTTONBAR?

Dale.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Menu and Buttonbar Colors

Post by Enrico Maria Giordano »

I don't think you can change menu colors. For the buttonbar try SetColor() method.

EMG
dpaterso
Posts: 142
Joined: Tue Jan 24, 2006 9:45 am
Location: South Africa
Contact:

Post by dpaterso »

Good Morning,

Well that's no good!!!

I have tried the SetColor( ) method for the Button Bar - it almost works but there is a sort of 'color bleeding' that occurs - I don't know why!

It's not serious - I just thought it would be nice to be able to change the colors - change the appearance to something like Nero 7.

Thanks anyway,

Regards,

Dale.
User avatar
Enrico Maria Giordano
Posts: 7355
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Post by Enrico Maria Giordano »

dpaterso wrote:Good Morning,

Well that's no good!!!

I have tried the SetColor( ) method for the Button Bar - it almost works but there is a sort of 'color bleeding' that occurs - I don't know why!
Please take the time to build (and post) a reduced and self-contained sample of the problem.
dpaterso wrote:It's not serious - I just thought it would be nice to be able to change the colors - change the appearance to something like Nero 7.
I haven't seen Nero 7 yet but I can easily imagine that it doesn't use standard menus if they are coloured different than the standard menus.

EMG
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Post by E. Bartzokas »

dpaterso wrote:Good Morning,
I have tried the SetColor( ) method for the Button Bar - it almost works but there is a sort of 'color bleeding' that occurs - I don't know why!
I have tried to change the buttonbar colors in RPREVIEW.PRG
and it seems to work fine.
I do not see any 'colors bleeding'.
Using WinXP Home Edition SP1
XHB Professional and FWH

Code: Select all

    DEFINE BUTTONBAR oBar SIZE 26, iif( LargeFonts(), 30, 26) OF oWnd   // _3D
     oBar:SetColor(CLR_WHITE, RGB(188,188,188))
Regards Evans
User avatar
E. Bartzokas
Posts: 114
Joined: Tue Feb 14, 2006 8:13 am
Location: Corinth, Greece

Re: Menu and Buttonbar Colors

Post by E. Bartzokas »

You can try to use my posted code for changing menu colors.
Search this forum for "FWH/xHarbour Menus"

Regards
Evans Bartzokas
Corinth, Greece

ps. You can contact me (or anyone else interested) in private to get my latest changes in this code for menu colors.
My email is "ebartzokas@gmail.com"

dpaterso wrote:Good Evening,
Is there any way to change / set the color of MENU and BUTTONBAR?
Dale.
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Menu and Buttonbar Colors

Post by nageswaragunupudi »

for buttonbar 2007 style, we can assign our own color gradient by setting a codeblock to oBar:bClrGradient
Regards

G. N. Rao.
Hyderabad, India
Post Reply