Page 1 of 1

UXTHEME.DLL - yes i know!

Posted: Wed May 16, 2007 5:44 pm
by Pantcho!!
it seems i just found out about it.

and i think that now a days its features are tremendous!

I am no API expert and i search the net for little examples and i found mostly weird C++/C# and in the PB forum i just found how to check if themes are enabled.

Since the new vista come in the game (errr...) i think using this DLL can be huge to make apps.

So i wanted to know in general if:

1. can you can skin your apps with it: buttons,labels,progressbar etc
2. can you distrobute the .DLL to use with other machines: 9x/2000 win
3. can you put the style you make with it in the EXE itself
4. can you put the style+DLL in the exe itself

yeah i know a lot of questions.

but most important for me is how to actually use a custom style on
the gadgets.

thanks for your help!!

Posted: Thu May 17, 2007 4:04 pm
by Pantcho!!
Ahh anyone? :roll:

Posted: Thu May 17, 2007 4:16 pm
by ts-soft
to 1: the DLL is for skinning windows, not for skinning applications
to 2: the DLL can't work with win9x or w2k
to 3: no
to 4: no

no shure at all, but this is only for skinning windows, or disable/ enable some
features for compatiblity.

Posted: Thu May 17, 2007 6:24 pm
by Denis
Hi Pantcho!!

i put a piece of code on french forum using GDI+ 1.0 to skin Buttons. It's a mix between GDI+ and XP theme to redraw some of parts of the buttons.

http://www.purebasic.fr/french/viewtopi ... c&start=30

You must use the GDI+ wrapper here or you could download the wrapper from SFSxOI

Because buttons are ownerdrawn, you have to write code when mouse is over or leave button area. My code don't do that but a good way is to use TrackMouseEvent_() API for that.

If you want to skin for example optionButton (ownerdrawn), you have to manage all optionbutton states for the group, the système won't do this when optionbutton are ownerdrawn.

Image

Posted: Fri May 18, 2007 11:26 am
by Pantcho!!
Thanks but i could not get it to work :/

Also it is not what i am after.

Guess this will be another mystery until i will know C++ good.