Page 1 of 2

XP Gadgets

Posted: Fri Sep 03, 2004 4:05 pm
by Killswitch
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?

Posted: Fri Sep 03, 2004 4:33 pm
by Num3
I think it's a demo limitation...
Works fine here, all the time!

Posted: Fri Sep 03, 2004 6:36 pm
by Killswitch
*Cries* that's it one way or another I will get the money for PB full version!!

Posted: Sun Sep 05, 2004 6:58 am
by MrMat
I also have this problem but i DO have the full version. Check out this grab:

Image

Any idea what the problem is?

Thanks,
Mat

Posted: Sun Sep 05, 2004 8:45 am
by thefool
hmmm you have enabled it in editor?
in compiler -> compiler options?

there are a check box there. try switching it..

Posted: Sun Sep 05, 2004 10:37 am
by PolyVector
Yes, you have to "Enable XP skin support"

Posted: Sun Sep 05, 2004 11:45 am
by Num3
Do a smart update....

I know that in first PB3.91 version, the xp.res was missing

Posted: Mon Sep 06, 2004 12:01 am
by MrMat
Thanks for all your help! I had "Enable XP skin support" ticked in jaPBe but not in the Visual Designer, d'oh! I also used smart update to get everything up to date.

Thanks again!
Mat

Posted: Mon Sep 06, 2004 1:16 am
by Dare2
Now that this is resolved, mind if I sort of hijack this a bit?

What exactly is an XP "manifest" file? Is it pertinent to non-XP systems? Does it have anything to do with what you guys were discussing here?

Thanks.

/\ (Dunce cap)

Posted: Mon Sep 06, 2004 9:35 am
by carolight
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

Posted: Mon Sep 06, 2004 11:58 am
by Dare2
Thanks Carolight.

:)

Posted: Mon Sep 06, 2004 1:10 pm
by thefool
anyway the newer pb versions adds the manifest directly to the exe, so you
just need the exe file

Posted: Wed Sep 22, 2004 1:31 am
by Dare2
Okay ...

/\ /\ (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> 
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)?

Posted: Wed Sep 22, 2004 10:47 am
by Num3
/\ /\ /\ (Tripledunce cap)

LOL, you'll only get XP gadgets on XP, on other OS versions it's ignored, so you fall back to standard gadgets ;)[/u]

Posted: Wed Sep 22, 2004 10:54 am
by Dare2
/\
:roll:

Thanks Num3.

* goes back to cleaning the chimney *

:)