FireLordZi Posted February 6, 2008 Posted February 6, 2008 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
James Posted February 6, 2008 Posted February 6, 2008 ... The EZSkin example has multiple skins... Blog - Seriously epic web hosting - Twitter - GitHub - Cachet HQ
Valuater Posted February 6, 2008 Posted February 6, 2008 (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 .... XSkin8) Edited February 6, 2008 by Valuater
FireLordZi Posted February 6, 2008 Author Posted February 6, 2008 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
Valuater Posted February 6, 2008 Posted February 6, 2008 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)
FireLordZi Posted February 6, 2008 Author Posted February 6, 2008 (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 February 6, 2008 by FireLordZi While Alive() { DrinkWine(); }AutoIt Programmer
FireLordZi Posted February 6, 2008 Author Posted February 6, 2008 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
Valuater Posted February 6, 2008 Posted February 6, 2008 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)
FireLordZi Posted February 8, 2008 Author Posted February 8, 2008 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
Valuater Posted February 8, 2008 Posted February 8, 2008 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 Author8)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now