Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

TToolBar Color Change Problem on Theme XP

Posted on 2005-02-24
10
Medium Priority
?
1,638 Views
Last Modified: 2011-10-03
Hi,

My projected is a MDI Application  compiled on Delphi 7 (Build 8.1) (OS: XP SP2 Build 2600).
The main form has a TToolBar (Properties: Color = clBtnFace; ParentColor = False)

If XP Theme is configured for "Windows Classic" it works OK. If XP theme is configured for
"Windows XP" the TToolBar resets it´s color to TMainForm.Color = clAppWorkspace on application startup.

Thanks in advance for all the help.

Vieira da Silva
0
Comment
Question by:intercad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 

Author Comment

by:intercad
ID: 13392351
I tested TXPManifest component and FileName.exe.manifest with the same results...
0
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13392363
There is an issue with ParentColor or ParentBackground.

Try turning parent background to true and recompiling/run, then set it back to false and do the same.
0
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13392368
Yeah I get the same problem when I use the TXPManifest component.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13392422
Once you set it back to false you should be able to choose the color you want correctly.
0
 

Author Comment

by:intercad
ID: 13392526
>There is an issue with ParentColor or ParentBackground.

>Try turning parent background to true and recompiling/run, then set it back to false and do >the same.

Do you mean ToolBar.ParentColor?

I tested the procedure with ToolBar.ParentColor with no positive results...
0
 
LVL 15

Accepted Solution

by:
mikelittlewood earned 750 total points
ID: 13392742
ok after having another quick look I see there is no parent background property for the toolbar.

the only way I could get the toolbar to have its own color was to put it on a panel at the top of the form.
Then turn the parentbackground to true for the panel, run, then reset back to false and run.

Ill carry on playing to see if there is a way of doing it without a panel.
0
 

Author Comment

by:intercad
ID: 13392758
Yes, that way it works OK.
0
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13392792
Nope I cant seem to do it without using a panel behind the toolbar.
Add your toolbar to a panel and set the toolbar to Align=alCient and adjust the size of the panel to the size a toolbar is normally.
0
 

Author Comment

by:intercad
ID: 13392824
Thanks for your support...
0
 
LVL 15

Expert Comment

by:mikelittlewood
ID: 13392837
Glad I could help.
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question