Sign in to follow this  
Followers 0
ScriptUSER

$skinfolder reading DLL possible ?

5 posts in this topic

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 ??

Share this post


Link to post
Share on other sites



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)


NEWHeader1.png

Share this post


Link to post
Share on other sites

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 !

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

Welcome... twice

I just use IrfanView and windows Paint

8)


NEWHeader1.png

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