Jump to content

XSkin.au3... Skin your GUI


Valuater
 Share

Recommended Posts

Thanks, I'm glad you like it :)

I also like the Theme approach, which is why the "tag" param is optional (defaults to ""). If you omit it, then the script operates just as before, using the Theme buttons.

UPDATE:

I was working on this for someone who wanted a themed GUI, and discovered (and squashed) 2 bugs. I've updated the _HoverButtonWaitUp() function in my previous post to NOT use @Gui_CtrlId. The 2 bugs were -

1. if the function was called from the tray icon menu, then GUIGetCursorInfo() fails, and the ButtonWait function failed with an array subscript error and crashed the script

2. if the VERY FIRST CLICK is from the tray menu, then @Gui_CtrlId is undefined and crashed the script with an unknown macro error

The ButtonUp function now uses the array from _ControlHover instead of @Gui_CtrlId and tests to make sure GUIGetCursorInfo() is successful and returns an array. Enjoy :(

PS - anyone know why editing a post with autoit | /autoit tags corrupts the text?

Edited by wraithdu
Link to comment
Share on other sites

  • 3 weeks later...
  • 3 weeks later...
  • 2 weeks later...

i make one new skin....i think all of you will like it:D

little stole it but what ever:D

Butons added:D

X,minimaze buton (normal, over mouse,pressed)

Simple buton (normal, over mouse,pressed)

Posted Image

Feel free to download it and use it:D

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

Spider.zip

Respect for all

Edited by Kyme
Link to comment
Share on other sites

i hate buttons but what ever maybe you will like it:D

Butons added:D

X,minimaze buton (normal, pressed)

Simple buton (normal, pressed)

Posted Image

Feel free to download it and use it:D

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

Flo.zip

Respect for all

Edited by Kyme
Link to comment
Share on other sites

Armmy skin:D

Butons added:D

X,minimaze buton (normal,over mouse, pressed)

Simple buton(normal,over mouse, pressed)

Posted Image

Feel free to download it and use it:D

↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

Armmy.zip

Respect for all

Edited by Kyme
Link to comment
Share on other sites

how do i add a child window thats not skinned. I want my parent window skinned but the child window not to be skinned. everytime i add a child window the program just freezes and crashes. Thanks to anyone who helps.

"The quieter you are, the more you are able to hear..."

My AppsUSB Finder

Link to comment
Share on other sites

  • 1 month later...

from many requests..

This is how to use a second gui

#include <XSkin.au3>

Dim $XskinID[3] ; the count to Mouseover + 1

; 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"

; create the parent ...

$XSkinGui = XSkinGUICreate( "My GUI", 400, 450, $Skin_Folder)
$XIcon = XSkinIcon($XSkinGui, 3)

$XSkinID[1] = GUICtrlCreateLabel(" This is a Mouse-Over color test", 120, 150, 150, 20)

$label = GUICtrlCreateLabel(" This is the theme button color", 120, 200, 150, 20)
GUICtrlSetBkColor( $label, $btn_color) ; see example of theme uses in XSkin.au3

GUISetState()


; Create the second ...

$XSkinGui2 = XSkinGUICreate( "My GUI2", 400, 450, $Skin_Folder)
$XIcon2 = XSkinIcon($XSkinGui, 1)

$XSkinID[2] = GUICtrlCreateLabel(" This is a Second GUI", 120, 150, 150, 20)

$label = GUICtrlCreateLabel(" Press exit to close this GUI", 120, 200, 150, 20)
GUICtrlSetBkColor( $label, $btn_color) 

GUISetState( @SW_HIDE, $XSkinGui2)


While 1
    MouseOver()
    $msg = GUIGetMsg()
   
    If $msg = $XIcon[1] Then Exit
    If $msg = $XIcon[2] Then GUISetState(@SW_MINIMIZE)
    
    If $msg = $XIcon[3] Then 
        GUISetState( @SW_HIDE, $XSkinGui)
        GUISetState( @SW_SHOW, $XSkinGui2)
    EndIf
    
    If $msg = $XIcon2[1] Then 
        GUISetState( @SW_HIDE, $XSkinGui2)
        GUISetState( @SW_SHOW, $XSkinGui)
    EndIf
    
WEnd

1 of many ways available.

8)

NEWHeader1.png

Link to comment
Share on other sites

  • 1 month later...
  • 2 weeks later...

Hi, this looks great!!!

I used this mod to dress up my UI and it works fine on my pc. But once I complied the program to an exe and run it on a different pc, I got an error message says skin folder cannot be found.

Does this mod require the skin folder to be installed on every pc it runs on? Can the exe file contain everything it needs to run including skins?

Thanks!

Link to comment
Share on other sites

Hi, this looks great!!!

I used this mod to dress up my UI and it works fine on my pc. But once I complied the program to an exe and run it on a different pc, I got an error message says skin folder cannot be found.

Does this mod require the skin folder to be installed on every pc it runs on? Can the exe file contain everything it needs to run including skins?

Thanks!

Yes, just use FileInstall() to install the Xskin files with the exe... see help

... glad you like it!

8)

NEWHeader1.png

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