Recent

Author Topic: WindowsXP manifest component....  (Read 32017 times)

derox

  • Jr. Member
  • **
  • Posts: 51
WindowsXP manifest component....
« on: March 07, 2005, 08:54:44 pm »
I'd like to see a manifest component like in Delphi which make your application adapt XP look...  8)

Lightning

  • Sr. Member
  • ****
  • Posts: 422
WindowsXP manifest component....
« Reply #1 on: March 15, 2005, 10:08:45 am »
This can be done verry easy by using a rc/res file, see IDE files :)
The best approach would be to integrate Version, Icons and Manifest directly into the IDE
The future must be... Fast and OpenSource so...
Think Open and Lightning Fast!

Anonymous

  • Guest
WindowsXP manifest component....
« Reply #2 on: June 24, 2005, 09:57:00 am »
If you have a myprogram.exe then create a file which called myprogram.exe.manifes and copy-paste
it to the file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1"
manifestVersion="1.0">
<assemblyIdentity
processorArchitecture="*"
version="1.0.0.0"
type="win32"
name="myprogram"/>
<description>programom</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
publicKeyToken="6595b64144ccf1df"
language="*"
processorArchitecture="*" />
</dependentAssembly>
</dependency>
</assembly>

Voila! XP looks.

Edwin

  • New Member
  • *
  • Posts: 22
WindowsXP manifest component....
« Reply #3 on: June 24, 2005, 12:06:13 pm »
Or try the component that Vins made:
Quote

I made a freeware componet for WinXP users. Here is what it does:

It makes your application have a WinXP Style look  
It adds a default icon to your application.(the icon can be changed very easy)

So when you place this component on you projects form or when you add it in the "uses" of the source file your application will become with an XP Style and with an icon without playing with "RES" and "MANIFEST" files  

You can download it directly form:
http://ecologybook.openfmi.net/tempfiles/WinXp.rar


If it works, thank Vins!

Edwin

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
WindowsXP manifest component....
« Reply #4 on: June 24, 2005, 12:23:37 pm »
Quote from: "Anonymous"
If you have a myprogram.exe then create a file which called myprogram.exe.manifes and copy-paste
it to the file:

....

Voila! XP looks.


Usefull information, I added this to the FAQ.

Feel free to add stuff like this yourself too.

Vincent Snijders

  • Administrator
  • Hero Member
  • *
  • Posts: 2661
    • My Lazarus wiki user page
WindowsXP manifest component....
« Reply #5 on: June 24, 2005, 12:31:38 pm »
Quote from: "Vins"

I made a freeware componet for WinXP users. Here is what it does:

You can download it directly form:
http://ecologybook.openfmi.net/tempfiles/WinXp.rar


I haven't tried it, but it looks very useful.

Do you want me to publish this component on the Lazarus Code and Component Repository? If yes, create a page describing this component like this one and I will upload the archive to the files area.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
WindowsXP manifest component....
« Reply #6 on: June 24, 2005, 03:11:25 pm »
I don't see a long life for this.
The reason an XP app needs a manifest is to distinguis between an old, common controls 5 using, app and a new, common controls 6 using, app. This to prevent crashing apps using obsolete 5 techniques. Since lazarus is common controls 6 aware, I think Lazarus should generate/create a manifest for win32 apps.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

Anonymous

  • Guest
WindowsXP manifest component....
« Reply #7 on: September 10, 2005, 05:09:16 pm »
Any progress with this ? Creating additional resource for XP look seems not hard work for IDE , right ?

spaceturner

  • Guest
WindowsXP manifest component....
« Reply #8 on: December 14, 2005, 06:17:32 pm »
Quote from: "Edwin"
Or try the component that Vins made:
Quote

I made a freeware componet for WinXP users. Here is what it does:

It makes your application have a WinXP Style look  
It adds a default icon to your application.(the icon can be changed very easy)

So when you place this component on you projects form or when you add it in the "uses" of the source file your application will become with an XP Style and with an icon without playing with "RES" and "MANIFEST" files  

You can download it directly form:
http://ecologybook.openfmi.net/tempfiles/WinXp.rar


If it works, thank Vins!

Edwin


Make this component included in the installation package in lazarus!

vins

  • New Member
  • *
  • Posts: 12
WindowsXP manifest component....
« Reply #9 on: March 06, 2006, 04:27:51 pm »
I have an idea :)
We(lazarus users) could make a Tool for the IDE that all windows users can integrate into Tools menu. The tool should automaticali create RES files with icons for the project together with the WinXP Style(Manifest files) option. If I have some free time I'll try to make such tool.

lepidosteus

  • New Member
  • *
  • Posts: 38
WindowsXP manifest component....
« Reply #10 on: March 06, 2006, 06:20:39 pm »
Could someone give me a link to a correct .rc files wich will include the manifest, or any tutorial/detailled explaination on ressource files (th rc format, beofre compilation by windres) ?

I'm willing to make something for it but can't figure how to include the manifest in the exe and have it working from there.

vins

  • New Member
  • *
  • Posts: 12
WindowsXP manifest component....
« Reply #11 on: March 06, 2006, 09:07:31 pm »
Here is what I made:
 (http://ecologybook.openfmi.net/tempfiles/demo.gif)

When added to the Tools Menu it works very good with every project. It automaticaly creates .RC files with icon information and version information. It automaticaly makes the manifest file and the generates a single .RES file that is produced in you project dir. The only thing you must do is to include the .RES file in you application( {$R WINRES.RES} ).
The tool also support adding custom Version Info items. You can chose not to include version info, icon or xp style.
I tried to make it as simple as posible.
The sourcecode of the tool is not perfect but the important thing is that it works.
The only problem I found is that the Debuger sometimes crash when the exe has XP style enabled. But you can always disable this option and enable it when you build the final release.

I have to got o sleep and then to school and then to private math lessons and then I'll have some time to pack the Tool, write a simple install instruction and upload it.

If someone knows where Lazarus stores Tools menu configuration I could try to make the instalation automatic.

Bye

mikiwoz

  • Full Member
  • ***
  • Posts: 130
WindowsXP manifest component....
« Reply #12 on: March 07, 2006, 12:04:52 am »
Great stuff, Vins! the only thing I would lack (got this in Delphi ;) ) is "Auto-increment Build number with every build". :)

Cheers
Mike

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2673
WindowsXP manifest component....
« Reply #13 on: March 07, 2006, 04:10:11 pm »
AFAIR, we had recently a discussion about this on the ML
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

tech-pro

  • Full Member
  • ***
  • Posts: 173
    • Tech-Pro.net
WindowsXP manifest component....
« Reply #14 on: March 08, 2006, 09:59:39 am »
I already made a tool to do this, see here: http://www.lazarus-resource.com/resource-manager.shtml.

I'm sure I tried adding a link to it in this forum's Tools list as well, but it doesn't seem to be there. :(
Julian

 

TinyPortal © 2005-2018