Solved

Changing to Windows XP design in runtime

Posted on 2004-09-26
7
195 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
[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
  • 4
  • 2
7 Comments
 
LVL 34

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 34

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
Technology Partners: 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

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 34

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

Technology Partners: 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!

Question has a verified solution.

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

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…
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…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

696 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