Sign in to follow this  
Followers 0
maykonnn

Help! Gui choose 2 skin

1 post in this topic

hi friends, I am trying to add on my form 2 skins for the User choice, by clicking on the first skin works as usual but when I choose the second skin does not work. Please help me !

 

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>






#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 521, 269, 192, 124)
$Radio1 = GUICtrlCreateRadio("Skin1", 64, 88, 129, 49)
$Radio2 = GUICtrlCreateRadio("Skin2", 64, 168, 161, 49)


GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###


While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit




case $Radio1


$skin1 = @ScriptDir & "\Cosmo.msstyles"
DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", "Skin.dll")
DllCall("Skin.dll", "int", "USkinInit", "ptr", "", "ptr", "", "str", $skin1)




Case $Radio2


$skin = @ScriptDir & "\GoldCoast.msstyles"
DllCall("kernel32.dll", "handle", "LoadLibraryW", "wstr", "Skin.dll")
DllCall("Skin.dll", "int", "USkinInit", "ptr", "", "ptr", "", "str", $skin)


EndSwitch
WEnd

 

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