Success! Thanks Robert - your reply made it clear what needed to be done -
simple when you know how:)

Before I mention the solution, there are couple of bugs - some of the
controls have a white background - which I suspect is due to the XP color
fix that went in a few builds ago. I will do more testing to isolate it, and
with a bit of luck provide a fix in the next day or so. All in all it works
very well.

There are two solutions, one simple, the other more involved (which I have
yet to get working - but should be easy).

1) Include the XML file below in the same directory as your runtime exe
(produced by perl2exe,  perl2app or PAR). The name of the XML file has to be
<your app>.exe.manifest

2) Include/compile the manifest as a resource in your application - I'll
reply again when I've got this working.

If you are interested in getting XP "Look and Feel" working well with
Win32::GUI I would be grateful if you could have a play with step one above
and respond with bug reports etc.

Cheers,

jez.


==========================
<?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="Your application"
      />
      <description>Win32::GUI Application</description>
      <dependency>
          <dependentAssembly>
              <assemblyIdentity
                  type="win32"
                  name="Microsoft.Windows.Common-Controls"
                  version="6.0.0.0"
                  publicKeyToken="6595b64144ccf1df"
                  language="*"
                  processorArchitecture="x86"
          />
      </dependentAssembly>
      </dependency>
  </assembly>
============================
----- Original Message ----- 
From: "Robert Thorpe" <[EMAIL PROTECTED]>
To: "Jez White" <[EMAIL PROTECTED]>;
<perl-win32-gui-users@lists.sourceforge.net>
Sent: Tuesday, February 03, 2004 5:48 PM
Subject: RE: [perl-win32-gui-users] XP "Look and Feel"


Under XP you can do it by adding a "manifest" to the resource file that
will be ignored by older versions of windows.
I'm not sure how this could be done for win-32gui.


Reply via email to