Jump to content

How to Apply a set of images to XSkinButton ?


Gioking
 Share

Recommended Posts

Hi, I would understand how to apply a set of images for a button, I would add an example of code:

In this example, at row 1 I can set the skin for the Gui but how can I choice a skin for the button at row 3 of this small example ?

Thank you for your help in advance.

Gioking

-----------------------------------------------------------------------------

#Include <XSkin.au3>

; folder of skin

1 $Skin_Folder = @ScriptDir & "\Skins\Carbon"

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

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

4 GUISetState()

While 1

MouseOver() ;makes the button flash on mouseover

Sleep(10)

WEnd

Func Hello()

MsgBox(64, "XSkin", "Test Button 1", 3)

EndFunc

Edited by Gioking
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...