Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate

USkin - Toolkit to Skin your Application [C++]


  • Please log in to reply
21 replies to this topic
BoBo³
  • Guests
  • Last active:
  • Joined: --

USkin provides a free library and tools to developers for easily adding skins to their software UI.

As we know, Windows XP adds support for themes for applications. When we change the Windows theme, all the Windows standard applications change into the same theme. How can we add skin support to our own software and make our software different from others? Here, I suggest a way: use the USkin toolkit.

Why USkin?
1.Saves your development time. You don't have to care too much about your software UI. After finishing your functions, add three lines of code to support a skin. It's very easy, and will save you time.
2.Makes your app look and feel good:), that's it.
3.Supports color themes. This can make a skin file look like a 100 different skins. Save your UI design time.
4.USkin provides a free version. Save your money!
5.Free powerful SkinStudio included that you can use to design your own skin file.

[More..]

Any chance that AHK GUIs are getting skinable? :D

SoLong&Thx4AllTheFish
  • Members
  • 4999 posts
  • Last active:
  • Joined: 27 May 2007

Any chance that AHK GUIs are getting skinable? :D

There are a few posts <!-- m -->http://www.autohotke... ... light=skin<!-- m --> I thought steamlab was also a "skinned gui" but can't check as these screenshots seem to be offline

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

Any chance that AHK GUIs are getting skinnable? :D


Why not? This was done with USkin. Applying a Skin to existing GUI scripts hardly takes 3-4 lines, However - I became less interested in it because it does not support all controls.

USkin.dll is packed with some less known commercial packer for compression/protection . VirusTotal result

BoBo³
  • Guests
  • Last active:
  • Joined: --

Applying a Skin to existing GUI scripts hardly takes 3-4 lines,

@ SKAN
Would you mind to give some details on (HowTo do) this?

:O An AHK CBT - not made available :shock: :cry:

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

:O An AHK CBT - not made available :shock: :cry:


My second kid had born ( he is 8 m.o now ) and since then my contributions to the community has been pathetic.. and currently/past 1 yr, I am/have been tired/busy constructing a farmhouse.

Would you mind to give some details on (HowTo do) this?


Would I? :)

Download the following 2 files:

Engine: <!-- m -->https://ahknet.autoh... ... inFree.dll<!-- m -->
SkinFile : <!-- m -->https://ahknet.autoh... ... kinFile.u3<!-- m -->

Code Example:

Posted Image
#SingleInstance, Force
hMod := DllCall("LoadLibrary", str, A_ScriptDir "\[color=red]uSkinFree.dll[/color]")
a := DllCall( "uSkinFree.dll\USkinInit", Int,0, Int,0, Str, A_ScriptDir "\[color=red]TheSkinFile.u3[/color]")
OnExit, QuitScript

Gui, Add, Text,   x5  y3  w320 h50 0x4
Gui, Add, Slider, x5  y+1 w320 h24 Thick21, 25
Gui, Add, Button, x16 y+5 w40 h24 , Open
Gui, Add, Button, x+1 w30 h24 , <
Gui, Add, Button, x+1 w40 h24 , >
Gui, Add, Button, x+1 w30 h24 ,|<
Gui, Add, Button, x+1 w30 h24 , >|
Gui, Add, Button, x+1 w30 h24 , PL
Gui, Show, x448 y204 w330 h136, Skan's MP3 Player
Return

QuitScript:
GuiClose:
GuiEscape:
 Gui, 1:Hide
 DllCall( "[color=red]uSkinFree.dll\USkinExit[/color]" )
 OnExit
 ExitApp
Return

I guess I got these files from neemedia.com or some chinese website. The code project article does not link to these files or the skin-studio software required to create/alter the skin files.
You may try my copy of FUI Skin Studio at your own risk: <!-- m -->https://ahknet.autoh... ... Studio.zip<!-- m -->

BoBo³
  • Guests
  • Last active:
  • Joined: --
Well, we all know how it ends if guys like you start building a house for their loved ones ... Click :D
So not being around for a few days, fair enough :lol:

+ thx for sharing your code. 8)

CyberGeek
  • Members
  • 159 posts
  • Last active: May 10 2013 06:01 PM
  • Joined: 18 Apr 2010
SKAN , its excellent!
Posted Image

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

SKAN , its excellent!


I became less interested in it because it does not support all controls.



SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005
/OFFTOPIC

Well, we all know how it ends if guys like you start building a house for their loved ones ... Click :D


Most of Indians ( atleast in South India ) consider Taj Mahal as a symbol of love ( and not as a mausoleum ). It just does not occur to us. There are 100's of native romantic movies that has a reference to it.

But I differ... I do not see any love in it.. only the bloody hands. :|

http://www.indiantra...al-history.html

There are ugly aspects to the legend of the Taj Mahal. It is said Shah Jahan had the hands or fingers of the craftsmen who built the Taj Mahal cut off to ensure they couldn't create another building like it. The chief architect was supposedly beheaded.


PS: Thanks for your first PM in 4.5 years.. I am honoured :D

BoBo³
  • Guests
  • Last active:
  • Joined: --
I saw a documentation where it was said the there's a tale of a previously existing Black Mahal ...

A more credible theory for the origins of the black mausoleum was demonstrated in 2006 by archeologists who reconstructed part of the pool in the Moonlight Garden. A dark reflection of the white mausoleum could clearly be seen, befitting Shah Jahan's obsession with symmetry and the positioning of the pool itself.


:shock:

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

I saw a documentation


:D Wikipedia!! Do not trust every article in it.

BoBo³
  • Guests
  • Last active:
  • Joined: --
Well, it was on television and quite impressive. 8)

Obi-Wahn
  • Members
  • 77 posts
  • Last active: Oct 29 2012 05:55 PM
  • Joined: 20 Apr 2006
Thanks SKAN

But I have 2 questions:

1.) Which Controls doesn't work with v2?

2.) Have you seen v3 ?


regarding 2:
I've seen version 3 online and tried to use it with AHK (the free-functions) but I can't get it to run...

USkinInit(skin, dll = "USkin.dll", uName = 0, rCode = 0) { 
   hMod := DLlCall("LoadLibrary", Str, dll) 
   Return, DllCall(dll "\USkinInit", Str, uName, Str, rCode, Str, skin) 
} 

USkinExit(dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinExit") 
} 

USkinLoadSkin(skin, dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinLoadSkin", Str, skin) 
} 

USkinAboutSkin(dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinAboutSkin") 
} 

USkinGetMenu(hwnd, dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinGetMenu", UInt, hwnd) 
} 

USkinUpdateMenuBar(hwnd, dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinUpdateMenuBar", UInt, hwnd) 
} 

USkinApplyColorTheme(hue, sat, dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinApplyColorTheme", Float, hue, Float, sat) 
} 

USkinRemoveSkin(dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinRemoveSkin") 
} 

USkinRestoreSkin(dll = "USkin.dll") { 
   Return, DllCall(dll "\USkinRestoreSkin") 
}

v3.0 is avaliable at Neemedia.com

SKAN
  • Administrators
  • 9115 posts
  • Last active:
  • Joined: 26 Dec 2005

1.) Which Controls doesn't work with v2?


IIRC, I was unable to control the BG color for EDIT / ListView controls.

2.) Have you seen v3 ?


No! I will check it out.. Thanks.

Obi-Wahn
  • Members
  • 77 posts
  • Last active: Oct 29 2012 05:55 PM
  • Joined: 20 Apr 2006

1.) Which Controls doesn't work with v2?


IIRC, I was unable to control the BG color for EDIT / ListView controls.

Thx


2.) Have you seen v3 ?


No! I will check it out.. Thanks.

np