ScriptUSER Posted March 19, 2007 Share Posted March 19, 2007 I am using dll to collect all icons and images in my application and then execute : GUICtrlCreateButton ("my button", 10,20,40,40, $BS_ICON) GUICtrlSetImage (-1, "gkt.dll",45) Is there a way to do the same to Valuters : $Skin_Folder = @ScriptDir & "\Skins\Universal" $Icon_Folder = @ScriptDir & "\dat" somewhat like : $Skin_Folder = GUICtrlSetImage (-1, "tgk.dll",) in this case maybe the dll must be specifically to skin images ?? Link to comment Share on other sites More sharing options...
Valuater Posted March 19, 2007 Share Posted March 19, 2007 Yepper!!!... Like This.... expandcollapse popup; temporary script ; Remember to look at the Functions ; XSkinIconButton($BItext, $BIleft, $BItop, $BIwidth, $BIheight, $BIconNum = 0, $BIDLL = "shell32.dll") #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, 2) $Button_1 = XSkinIconButton ("Printer", 150, 150, 90, 30, 17, "shell32.dll" ) ; Icon button - Using a dll file $Button_2 = XSkinIconButton ("Printer", 150, 200, 90, 30, -1, "notepad.exe" ) ; Icon button - Using an exe file GUISetState() While 1 MouseOver() $msg = GUIGetMsg() Select Case $msg = $XIcon[1] Exit Case $msg = $XIcon[2] GUISetState(@SW_MINIMIZE) Case $msg = $Button_2 MsgBox(64,"Test","helped...????????? ",4) Case $msg = $button_1 MsgBox(64,"Test", "You pressed the Icon Button", 2) EndSelect WEnd 8) Link to comment Share on other sites More sharing options...
ScriptUSER Posted March 19, 2007 Author Share Posted March 19, 2007 Yepper!!!... Like This.... ; temporary script ; Remember to look at the Functions ; XSkinIconButton($BItext, $BIleft, $BItop, $BIwidth, $BIheight, $BIconNum = 0, $BIDLL = "shell32.dll") #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, 2) $Button_1 = XSkinIconButton ("Printer", 150, 150, 90, 30, 17, "shell32.dll" ) ; Icon button - Using a dll file $Button_2 = XSkinIconButton ("Printer", 150, 200, 90, 30, -1, "notepad.exe" ) ; Icon button - Using an exe file GUISetState() While 1 MouseOver() $msg = GUIGetMsg() Select Case $msg = $XIcon[1] Exit Case $msg = $XIcon[2] GUISetState(@SW_MINIMIZE) Case $msg = $Button_2 MsgBox(64,"Test","helped...????????? ",4) Case $msg = $button_1 MsgBox(64,"Test", "You pressed the Icon Button", 2) EndSelect WEnd 8) Valuater ! Thank you for your Great Plugin .. I was so close ! Link to comment Share on other sites More sharing options...
ScriptUSER Posted March 19, 2007 Author Share Posted March 19, 2007 Yepper!!!... Like This.... ; temporary script ; Remember to look at the Functions ; XSkinIconButton($BItext, $BIleft, $BItop, $BIwidth, $BIheight, $BIconNum = 0, $BIDLL = "shell32.dll") #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, 2) $Button_1 = XSkinIconButton ("Printer", 150, 150, 90, 30, 17, "shell32.dll" ) ; Icon button - Using a dll file $Button_2 = XSkinIconButton ("Printer", 150, 200, 90, 30, -1, "notepad.exe" ) ; Icon button - Using an exe file GUISetState() While 1 MouseOver() $msg = GUIGetMsg() Select Case $msg = $XIcon[1] Exit Case $msg = $XIcon[2] GUISetState(@SW_MINIMIZE) Case $msg = $Button_2 MsgBox(64,"Test","helped...????????? ",4) Case $msg = $button_1 MsgBox(64,"Test", "You pressed the Icon Button", 2) EndSelect WEnd 8) Valuater ! Thank you for your Great Plugin .. I was so close ! Which paint program do you recommend to make my own skins ? Link to comment Share on other sites More sharing options...
Valuater Posted March 19, 2007 Share Posted March 19, 2007 Welcome... twiceI just use IrfanView and windows Paint8) Link to comment Share on other sites More sharing options...
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