Solved

Changing to Windows XP design in runtime

Posted on 2004-09-26
7
184 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

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…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
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…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

937 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

4 Experts available now in Live!

Get 1:1 Help Now