Sign in to follow this  
Followers 0
FireLordZi

Multiple Skins

10 posts in this topic

I used EzSkin on my program and the folder it reads the images from is called 'EzSkin' without quotes. I was wondering

if it is possible to have it read from more than one folder so I can choose which skin to load.

If this would be possible it would great. :)


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

EzSkin was designed to be very, very easy! Just 3 clicks and its done!

If you want to use more skins and other GREAT Plug-ins use .... XSkin

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

I downloaded XSkin.au3 and I don't know where to put my code? Is it after the comment 'Now your on your own'?


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites

Place XSkin.au3 in the include folder or in the same folder as your script.

you will need the skins ( I think you have those from EzSkin )

then try this..

#include <XSkin.au3>

; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Black-Yellow"

$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder)

$button_1 = XSkinButton("Button 1", 145, 100, 100, 35, "Hello")

GUISetState()

While 1
   
    MouseOver()
   
    Sleep(10)
WEnd

Func Hello()
    MsgBox(64, "XSkin", "Test Button 1", 3)
EndFunc

XSkin is more complicated than EzSkin, BUT you can do a lot more with it!

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

When I created my title I did like this:

$XSkinGui = XSkinGUICreate( "- " & $version, 400, 450, $Skin_Folder)

and my gui is still smaller than 400,450?

Edited by FireLordZi

While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites

Nvm the previous post, I can't figure out where to put the filename where my .bmp is because I want to have a picture on my close button at the top right.


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites

Nvm the previous post, I can't figure out where to put the filename where my .bmp is because I want to have a picture on my close button at the top right.

This is the Demonstration page... All the demo scripts are here

http://www.autoitscript.com/forum/index.ph...st&p=233849

This demo is with the "close Picture Button"

#include <XSkin.au3> 

; the two following folders are seperate for building skins
; however in YOUR program put them in the same folder
; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Black-Yellow"
; icon folder
$Icon_Folder = @ScriptDir & "\Skins\Default"

$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder)
$XIcon = XSkinIcon($XSkinGui, 3)

GUISetState()


While 1
    $msg = GUIGetMsg()
    
    If $msg = $XIcon[1] Then Exit 
    If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE)
    If $msg = $XIcon[3] Then MsgBox(0,0,"help",1)
    
WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Thanks, I got it working real nice and in the process got to add 3 new skins to my program.

:)


While Alive() {
	 DrinkWine();
}
AutoIt Programmer

Share this post


Link to post
Share on other sites

Thanks, I got it working real nice and in the process got to add 3 new skins to my program.

:)

Great!

Please post your new skins in the XSkin thread and I will add a link to your post, because...

.... You are the Author

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0