XP Gadgets
-
Killswitch
- Enthusiast

- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
XP Gadgets
I've been doing some works with windows and gadgets and I've been using the Visual Designer with that comes with PB. When I design a window all the gadgets appear as XP Gadgets (you know round/soft) but when I run the souce I get old windows buttons (square and ugly imho). I thoght that I mightent have switched on an option in the designer or something so I turned on 'XP Skin Support' in both the visual designer and the PB compiler. The same thing still happens. I use the demo version of PB with windows XP Professional - what's going on?
~I see one problem with your reasoning: the fact is thats not a chicken~
-
Killswitch
- Enthusiast

- Posts: 731
- Joined: Wed Apr 21, 2004 7:12 pm
-
PolyVector
- Enthusiast

- Posts: 499
- Joined: Wed Sep 17, 2003 9:17 pm
- Location: Southern California
- Contact:
I'm sure there are more knowledgeable people about this - I have used manifests with Delphi 6 programs to utilize XP themes, as the .exe produced looks 'old-fashioned'.
Amongst other things, in a manifest file you're able to specify which version (windows dll) of common controls the .exe should use.
I found this link which explains it quite well:
http://msdn.microsoft.com/msdnmag/issue ... fault.aspx
Search for the word manifest on the page, or scroll down about 3 pages to the chapter headed "Side-by-side Assembly Sharing"
But it's an XP feature, not win2k
Amongst other things, in a manifest file you're able to specify which version (windows dll) of common controls the .exe should use.
I found this link which explains it quite well:
http://msdn.microsoft.com/msdnmag/issue ... fault.aspx
Search for the word manifest on the page, or scroll down about 3 pages to the chapter headed "Side-by-side Assembly Sharing"
But it's an XP feature, not win2k
Okay ...
/\ /\ (Double dunce cap)
I "borrowed" this manifest:
Which is scattered through the PureBasic folder/subfolders.
I copied it to a folder holding myProg.pb and renamed it as myProg.exe.manifest. (myProg.exe just shows a calendar gadget)
I enabled WinXP skin support.
I compiled myProg.exe
I squinted my eyes, rubbed them till they watered, borrowed somebody else's glasses ...
...I see no difference in the look or theme of my app.
I run win2k.
Should something XP-ish have happened?
Should I be doing something else (like cleaning chimneys or buying XP)?
/\ /\ (Double dunce cap)
I "borrowed" this manifest:
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="X86"
name="CompanyName.ProductName.YourApp"
type="win32"
/>
<description>Your application description here.</description>
<dependency>
<dependentAssembly>
<assemblyIdentity
type="win32"
name="Microsoft.Windows.Common-Controls"
version="6.0.0.0"
processorArchitecture="X86"
publicKeyToken="6595b64144ccf1df"
language="*"
/>
</dependentAssembly>
</dependency>
</assembly> I copied it to a folder holding myProg.pb and renamed it as myProg.exe.manifest. (myProg.exe just shows a calendar gadget)
I enabled WinXP skin support.
I compiled myProg.exe
I squinted my eyes, rubbed them till they watered, borrowed somebody else's glasses ...
...I see no difference in the look or theme of my app.
I run win2k.
Should something XP-ish have happened?
Should I be doing something else (like cleaning chimneys or buying XP)?
@}--`--,-- A rose by any other name ..



