TOOLBAR BACKCOLOR

General Help regarding HMG, Compilation, Linking, Samples

Moderator: Rathinagiri

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

TOOLBAR BACKCOLOR

Post by CCH4CLIPPER » Tue Mar 10, 2009 3:38 am

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: 4332
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 221 times
Been thanked: 76 times
Contact:

Post by esgici » Tue Mar 10, 2009 4:36 am

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: 130
Joined: Tue Mar 03, 2009 8:59 am

Post by CCH4CLIPPER » Tue Mar 10, 2009 4:39 am

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: 4332
Joined: Wed Jul 30, 2008 9:17 pm
DBs Used: DBF
Location: iskenderun / Turkiye
Has thanked: 221 times
Been thanked: 76 times
Contact:

Post by esgici » Tue Mar 10, 2009 4:50 am

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: 130
Joined: Tue Mar 03, 2009 8:59 am

Post by CCH4CLIPPER » Tue Mar 10, 2009 5:44 am

Hi Esgici

Point taken.


CCH
http://cch4clipper.blogspot.com

User avatar
Pablo César
Posts: 4058
Joined: Wed Sep 08, 2010 1:18 pm
Location: Curitiba - Brasil
Has thanked: 100 times
Been thanked: 177 times

Post by Pablo César » Wed Mar 15, 2017 11:34 pm

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 292 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