Changing to Windows XP design in runtime

Posted on 2004-09-26
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?
Question by:rainbowsoftware
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
  • 4
  • 2
LVL 34

Accepted Solution

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"
LVL 34

Expert Comment

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

Author Comment

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.
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 34

Expert Comment

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);
SendMessage(Handle, WM_THEMECHANGED, 0,0);

Author Comment

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.
LVL 34

Expert Comment

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,

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

749 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