Print Page | Close Window

Application Style

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=1214
Printed Date: 28 September 2024 at 7:35pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Application Style
Posted By: msamocha
Subject: Application Style
Date Posted: 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)?



Replies:
Posted By: SuperMario
Date Posted: 28 September 2004 at 12:43pm
Add a manifest file to your project.


Posted By: xred
Date 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!



Posted By: msamocha
Date 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"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
 processorArchitecture="x86"
 version="5.1.0.0"
 type="win32"
 name="Application name"
/>
<dependency>
 <dependentAssembly>
  <assemblyIdentity
   type="win32"
   name="Microsoft.Windows.Common-Controls"
   version="6.0.0.0"
   publicKeyToken="6595b64144ccf1df"
   language="*"
   processorArchitecture="x86"
  />
 </dependentAssembly>
</dependency>
</assembly>

 

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

 




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net