![]() |
Application Style |
Post Reply
|
| Author | |
msamocha
Newbie
Joined: 07 March 2004 Location: Israel Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Topic: Application StylePosted: 28 September 2004 at 12:14pm |
|
This is a standard MessageBox displayed in the XTP CustomizeDlg sample program: This a standard MessageBox from somewhere else: As you can see the customizedlg sample is blessed with the stylish buttons in all its windows. My question is: How can I set the buttons in my application to have these nice buttons as well (and not the ugly buttons in the 2nd image)? |
|
![]() |
|
SuperMario
Senior Member
Joined: 14 February 2004 Status: Offline Points: 18057 |
Post Options
Thanks(0)
Quote Reply
Posted: 28 September 2004 at 12:43pm |
|
Add a manifest file to your project.
|
|
![]() |
|
xred
Groupie
Joined: 24 August 2004 Location: China Status: Offline Points: 28 |
Post Options
Thanks(0)
Quote Reply
Posted: 30 September 2004 at 5:35am |
|
And rename the mainfest file to "YourApplication.exe.mainfest"! If you don't konw how to add a mainfest file,you can build an application with VS.net,then you will find a mainfest file in debug!By the way,this file's type is xml,you can open it with notebook,and you will find some useful infomation! Hope this help! |
|
![]() |
|
msamocha
Newbie
Joined: 07 March 2004 Location: Israel Status: Offline Points: 30 |
Post Options
Thanks(0)
Quote Reply
Posted: 03 October 2004 at 5:17am |
|
Yeah thanks it works great I added a manifest file to allow xp looks on XP. Its a simple procedure - I'll write it here if any1 is interested: 1. create a new xml manifest file with the following content: <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2. insert a new Imported resource (the xml file from step 1) to the application - - the resource type should be 24 -the reesource id is 1 Thats it
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |