Jump to content

Multiple Skins


Recommended Posts

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
Link to comment
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

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...