XP Gadgets

Windows specific forum
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

XP Gadgets

Post 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?
~I see one problem with your reasoning: the fact is thats not a chicken~
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

I think it's a demo limitation...
Works fine here, all the time!
Killswitch
Enthusiast
Enthusiast
Posts: 731
Joined: Wed Apr 21, 2004 7:12 pm

Post by Killswitch »

*Cries* that's it one way or another I will get the money for PB full version!!
~I see one problem with your reasoning: the fact is thats not a chicken~
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post 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
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

hmmm you have enabled it in editor?
in compiler -> compiler options?

there are a check box there. try switching it..
PolyVector
Enthusiast
Enthusiast
Posts: 499
Joined: Wed Sep 17, 2003 9:17 pm
Location: Southern California
Contact:

Post by PolyVector »

Yes, you have to "Enable XP skin support"
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post by Num3 »

Do a smart update....

I know that in first PB3.91 version, the xp.res was missing
MrMat
Enthusiast
Enthusiast
Posts: 762
Joined: Sun Sep 05, 2004 6:27 am
Location: England

Post 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
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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)
@}--`--,-- A rose by any other name ..
carolight
User
User
Posts: 41
Joined: Mon Feb 09, 2004 11:08 am
Location: Gold Coast, Australia

Post 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
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

Thanks Carolight.

:)
@}--`--,-- A rose by any other name ..
thefool
Always Here
Always Here
Posts: 5875
Joined: Sat Aug 30, 2003 5:58 pm
Location: Denmark

Post by thefool »

anyway the newer pb versions adds the manifest directly to the exe, so you
just need the exe file
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post 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)?
@}--`--,-- A rose by any other name ..
Num3
PureBasic Expert
PureBasic Expert
Posts: 2812
Joined: Fri Apr 25, 2003 4:51 pm
Location: Portugal, Lisbon
Contact:

Post 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]
Dare2
Moderator
Moderator
Posts: 3321
Joined: Sat Dec 27, 2003 3:55 am
Location: Great Southern Land

Post by Dare2 »

/\
:roll:

Thanks Num3.

* goes back to cleaning the chimney *

:)
@}--`--,-- A rose by any other name ..
Post Reply