TOOLBAR BACKCOLOR

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

Post Reply
CCH4CLIPPER
Posts: 140
Joined: Tue Mar 03, 2009 8:59 am

TOOLBAR BACKCOLOR

Post by CCH4CLIPPER »

Hi Escigi/Rathinagiri

I noticed that there is no BACKCOLOR for TOLLBAR.
Is there a workaround ?


CCH
http://cch4clipper.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: TOOLBAR BACKCOLOR

Post by esgici »

CCH4CLIPPER wrote:
I noticed that there is no BACKCOLOR for TOLLBAR.
Is there a workaround ?


CCH
Hi CCH

By definition, the BACKCOLOR property of some controls ( including TOOLBAR and BUTTON ) is Window Background.

If any property / event or method for any control does not exist in the command syntax, this means that there isn't such thing. Like Status bar including progress bar, tool tip including Menu Item etc.

Regards

--

esgici
Viva INTERNATIONAL HMG :D
CCH4CLIPPER
Posts: 140
Joined: Tue Mar 03, 2009 8:59 am

Re: TOOLBAR BACKCOLOR

Post by CCH4CLIPPER »

Hi Escigi

Too bad.

Using BackColor , the ToolBar & Main windows looks pretty awful.

What I wanted was for the ToolBar to remain Gray while the main window is say TEAL :-(


http://cch4clipper.blogspot.com
User avatar
esgici
Posts: 4543
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Contact:

Re: TOOLBAR BACKCOLOR

Post by esgici »

Hi CCH

In general, HMG use current Windows theme colors for defaults. This is very good feature. When you ( or your customer / user ) changes desktop theme, your HMG appl too will changes by apperence.

You have select colors according to this feature.

Regards

--

esgici
Viva INTERNATIONAL HMG :D
CCH4CLIPPER
Posts: 140
Joined: Tue Mar 03, 2009 8:59 am

Re: TOOLBAR BACKCOLOR

Post by CCH4CLIPPER »

Hi Esgici

Point taken.


CCH
http://cch4clipper.blogspot.com
User avatar
Pablo César
Posts: 4059
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil

TOOLBAR BACKCOLOR

Post by Pablo César »

I like challenge and I do not settle for what they tell me until I can not experience by myself "the impossible".

That's the main idea to make way for innovations and maybe improve something. :D

What seemed impossible when changing the BackColor of Form, there was also a solution, which in this topic I've apointed: viewtopic.php?p=22860#p22860

The problem is to keep the color of the ToolBar from one color and that of the form in another color. :|

But not impossible, I got a simple alternative in the On Paint event by painting a rectangle in the color I want to change the background of the forum.

And it looked good as a charm:
 
Screen129.png
Screen129.png (19.63 KiB) Viewed 2511 times
 
Well, that's the tip.
HMGing a better world
"Matter tells space how to curve, space tells matter how to move."
Albert Einstein
Post Reply