FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Menu and Buttonbar Colors
Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Menu and Buttonbar Colors
Posted: Fri Feb 24, 2006 07:28 PM

Good Evening,

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

Dale.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Re: Menu and Buttonbar Colors
Posted: Fri Feb 24, 2006 08:54 PM

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

EMG

Posts: 142
Joined: Tue Jan 24, 2006 09:45 AM
Menu and Buttonbar Colors
Posted: Sat Feb 25, 2006 05:36 AM

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.

Posts: 9022
Joined: Thu Oct 06, 2005 08:17 PM
Menu and Buttonbar Colors
Posted: Sat Feb 25, 2006 09:37 AM
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
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Menu and Buttonbar Colors
Posted: Tue Feb 28, 2006 06:32 PM
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
    DEFINE BUTTONBAR oBar SIZE 26, iif( LargeFonts(), 30, 26) OF oWnd   // _3D
     oBar:SetColor(CLR_WHITE, RGB(188,188,188))

Regards Evans
Posts: 114
Joined: Tue Feb 14, 2006 08:13 AM
Re: Menu and Buttonbar Colors
Posted: Tue Jun 02, 2009 04:48 PM
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.
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Menu and Buttonbar Colors
Posted: Wed Jun 03, 2009 09:12 AM

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

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion