Solved

Changing to Windows XP design in runtime

Posted on 2004-09-26
7
183 Views
Last Modified: 2010-04-05
I use {$R windowsXP.res} to present my application in XP design for the user.
How can  I let the user decide if he wants an XP or 98 design?
0
Comment
Question by:rainbowsoftware
  • 4
  • 2
7 Comments
 
LVL 33

Accepted Solution

by:
Slick812 earned 125 total points
ID: 12155813
hello rainbowsoftware, , I may not understand your question, I guess you are refering to the new XP  "Theme" common control drawing style? If you are. . . . . .
As far as I know if you compile the mainifest file into your program, then XP will use the "Theme" to draw the controls. But if you do NOT compile the manifest file into your program, and just have that file  in the same folder as the program, you will still get the "Themes" on the program, and then if your user does not want "Themes", then just  delete the manifest file or rename it. And the next time your program is run, then it will not have the "Themes"
0
 
LVL 33

Expert Comment

by:Slick812
ID: 12166317
do you need some code for a manifest file? ? ?
0
 

Author Comment

by:rainbowsoftware
ID: 13343137
Thanks to Slick812 for an explanation. Helped me to understand, but unfortunately I have to accept, that it is not possible to do what I want.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 33

Expert Comment

by:Slick812
ID: 13347670
????
It may be possible to change it.
This is forum at EE, so you ask questions if you need more help. . .

here is some code that in windows XP, is suppose to Turn Off the Theme


uses  UxTheme;

procedure TForm1.FormCreate(Sender: TObject);
begin
SetThemeAppProperties(0);
SendMessage(Handle, WM_THEMECHANGED, 0,0);
end;
0
 

Author Comment

by:rainbowsoftware
ID: 13409854
Thanks to Slick812.
It doesn't quite work for all components in my form, but you gave me a hint to examine the Windows UxTheme.
If you post your comment as an answer, I can give you the points.
0
 
LVL 33

Expert Comment

by:Slick812
ID: 13410935
I do not know what you mean when you say -

If you post your comment as an answer, I can give you the points.
? ? ?
- - - - - - - - - - - - - - - -

I'm glad you got some of it to help you, however,  some components on the delphi form are NOT windowed controls, and the above SetThemeAppProperties(0); will only effect the windowed controls,
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This video discusses moving either the default database or any database to a new volume.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

757 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

Need Help in Real-Time?

Connect with top rated Experts

25 Experts available now in Live!

Get 1:1 Help Now