From: Robert T. <Rob...@an...> - 2004-02-04 08:58:34
|
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. ________________________________ From: per...@li... [mailto:per...@li...] On Behalf Of Jez White Sent: 03 February 2004 13:27 To: Win32-GUI Subject: [perl-win32-gui-users] XP "Look and Feel" =09 =09 Hi, =20 There have been a few mails in the past about getting XP "look and feel" working with Win32::GUI. I came across the following while searching for something completely different: =20 http://search.cpan.org/~mbarbon/Wx-0.18/Wx.pm#Windows_XP_look =20 It is an example of what need to be done for the wxWindows GUI toolkit - I've no idea what needs to be done to get XP styles working for Win32::GUI but it might help someone figure it out:) =20 Cheers, =20 jez. =20 |
From: Jez W. <je...@je...> - 2004-02-03 21:42:01
|
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" <Rob...@an...> To: "Jez White" <je...@je...>; <per...@li...> 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. |
From: Jez W. <je...@je...> - 2004-02-04 13:13:17
Attachments:
wperl.exe.manifest
|
The only control that has problems (that I could find) with XP styles is the tab strip. The tab strip only has minor issues - other dev platforms have the same issues, so it's not specific to Win32::GUI. To get XP styles working direct with Perl you can save the attachment (perl.exe.manifest) in the same directory as perl.exe. You don't need to do anything else. Cheers, jez. |