Jump to content

XSkin.au3... Skin your GUI


Valuater
 Share

Recommended Posts

UPDATE

Oct. 2, 2006

XSkin.au3 v1.3.0

Added - User define the "arc" of the guicorners

$guiCorners = 25 ; 0 = no rounded corners, ( optional, default is rounded with "arc" of 25)

Fix - now passes Opt("MustDeclareVars", 1)

Fix - All message boxes follow the default of the original skins corners and header

8)

NEWHeader1.png

Link to comment
Share on other sites

Nice work!

If I build an application with Koda GUI designer, how to skin it?

Normally you will want to "enlarge" the gui height and width so your program does not appear on the designed edges...

secondly start here.....

http://www.autoitscript.com/forum/index.ph...st&p=241002

then look through the "very clear" basic examples here

http://www.autoitscript.com/forum/index.ph...st&p=233849

8)

NEWHeader1.png

Link to comment
Share on other sites

OK. Thanks!

This project seems really great! Congratulations!!

I think to use Koda with XSkin, I have to design the GUI and then use some text editor to replace the calls to GUI functions with Xskin GUI functions.

But it would be very good if Koda added support for Xskin at design time! :lmao:

AutoIt is becoming powerful tool even for complete programs. :ph34r:

Another question: How to set the title bar moveable so the window can be moved like a not-skinned window?

Edited by lectus
Link to comment
Share on other sites

OK. Thanks!

This project seems really great! Congratulations!!

I think to use Koda with XSkin, I have to design the GUI and then use some text editor to replace the calls to GUI functions with Xskin GUI functions.

But it would be very good if Koda added support for Xskin at design time! :lmao:

AutoIt is becoming powerful tool even for complete programs. :ph34r:

Another question: How to set the title bar moveable so the window can be moved like a not-skinned window?

thanks....

Skinned Windows are now Moveable/Dragable by the midddle section of the Title Bar area

Including the Message Box and Input Box

Updated page #1

XSkin v1.3.1

Oct. 2, 2006

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

I have successfully implemented xskin into my GUI, and it is sweet. However, after I compile the .au3 file into an .exe, it still require the xSkin folder do be in the same directory as the .exe, is there a way to make it so you can copy the .exe anywhere you want and still be able to use Xskin images?

Thanks

Link to comment
Share on other sites

wow this is awesome works great

I realize you would be considered a "newbie" which would "normally" lower the value of your respose "slightly"

........ However, I see this...

Posts: 1

Joined: 3-June 06

and in all that time your "1" post was here..

Thank you very much..... algrn912005

Valuater

8)

NEWHeader1.png

Link to comment
Share on other sites

I'm just curious if animated GIFs, AVIs, or Flash content works with this, or if anyone would be interested in it. It might be kind of cool to have small animations for the buttons or border.

Thats a great idea....

I am currently working on an XSkin "Plugin" ( additional include )

maybe you could create that idea as another Plugin

???

the plugins would be an optional include to the original Xskin.au3

8)

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

XSkin Plug-in

XSkinToolBar.au3

Posted Image

XSkinToobar Example

#include <XSkin.au3>
#include <XSkinToolBar.au3>

; folder of skin
$Skin_Folder = @ScriptDir & "\Skins\Universal"

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

GUISetState ()


; $h_ToolBar = XSkinToolBarCreate($Xh_Gui, $tool_left, $tool_top, $tool_width, $tool_bkcolor = "")
; XSkinToolBarButton($iNumber, $iDLL = "shell32.dll")
; XSkinToolBarSeparator()

$h_ToolBar = XSkinToolBarCreate($XSkinGui, 40, 40, 312, $bkg_color)

; #1 - Using Icons from a dll ( shell32.dll is default)
$TButton1 = XSkinToolBarButton(22)
XSkinToolBarButton(21)
XSkinToolBarButton(17)
XSkinToolBarButton(44)
XSkinToolBarSeparator()

; #2 - Using Icons from an exe file
XSkinToolBarButton( "", @WindowsDir & "\notepad.exe")
XSkinToolBarButton("", @ProgramFilesDir & "\Internet Explorer\iexplore.exe")
XSkinToolBarButton( "", @WindowsDir & "\explorer.exe")
XSkinToolBarButton( "", @SystemDir & "\calc.exe")
XSkinToolBarSeparator()

; #3 - Using Icons from an ico file
XSkinToolBarButton("", @ScriptDir & "\Skins\Default-ToolBar\Admin Tools.ico")
XSkinToolBarButton("", @ScriptDir & "\Skins\Default-ToolBar\Control Panel.ico")
XSkinToolBarButton("", @ScriptDir & "\Skins\Default-ToolBar\E-Mail.ico")
XSkinToolBarButton("", @ScriptDir & "\Skins\Default-ToolBar\MSI.ico")

GUISetState()

While 1
    $msg = GUIGetMsg()
    
    If $msg = $TButton1 Then MsgBox(64, "test 1", "you pressed Button #1     ", 3)
    
WEndoÝ÷ Ùt¤tè¢PZ­«·w%¹×ºÚ"µÍÚ[ÛYK[ÛÙBÚ[ÛYH ÑÕRPÛÛÝ[Ñ^]LÉÝÂÚ[ÛYH ÕÚ[ÝÜÐÛÛÝ[Ë]LÉÝÂÚ[ÛYH Ð]ÛÛÛÝ[Ë]LÉÝÂÚ[ÛYH   ÔÝ]XÐÛÛÝ[Ë]LÉÝÂÓÜ
    ][ÝÓ]ÝXÛUÉ][ÝËJBÈKK]]Ú]ËLHÙÈÝ]ZHÚÚ[]LÂÈ    ÌÍÚÕÛÛHÚÚ[ÛÛÜX]J ÌÍÖÑÝZK    ÌÍÝÛÛÛY   ÌÍÝÛÛÝÜ  ÌÍÝÛÛÝÚY ÌÍÝÛÛØØÛÛÜH   ][ÝÉ][ÝÊBÈÚÚ[ÛÛ]Û ÌÍÚS[X   ÌÍÚQH    ][ÝÜÚ[Ì ][ÝÊBÈÚÚ[ÛÛÙ]Ü
BÛØ[  ÌÍÕÛHLB[ÈÚÚ[ÛÛÜX]J    ÌÍÖÑÝZK    ÌÍÝÛÛÛY   ÌÍÝÛÛÝÜ  ÌÍÝÛÛÝÚY ÌÍÝÛÛØØÛÛÜH   ][ÝÉ][ÝÊBØØ[  ÌÍÖÕÛÛ    ÌÍÖÕÛÛHÕRPÜX]J  ][ÝÉ][ÝË    ÌÍÝÛÛÝÚY ÌÍÝÛÛÛY   ÌÍÝÛÛÝÜ  ÌÍÕÔ×ÐÒS ÌÍÕÔ×ÑVÔÕUPÑQÑK   ÌÍÖÑÝZJBY  ÌÍÝÛÛØØÛÛÜ    ÉÝÈ  ][ÝÉ][ÝÈ[ÕRTÙ]ÐÛÛÜ    ÌÍÝÛÛØØÛÛÜ    ÌÍÖÕÛÛB]  ÌÍÖÕÛÛ[[Â[ÈÚÚ[ÛÛ]Û ÌÍÚS[X   ÌÍÚQH    ][ÝÜÚ[Ì ][ÝÊBØØ[    ÌÍÖY ÌÍÕY ÌÍÕÛH   ÌÍÕÛ
ÈB ÌÍÕYH    ÌÍÕÛ
    ÌÍÖYHÕRPÝÜX]P]Û  ][ÝÉ][ÝË    ÌÍÕYK    ÌÍÐ×ÒPÓÓBÕRPÝÙ][XYÙJ ÌÍÖY ÌÍÚQ ÌÍÚS[X
B]  ÌÍÖY[[Â[ÈÚÚ[ÛÛÙ]Ü
BØØ[  ÌÍÕY ÌÍÕÛH   ÌÍÕÛ
ÈB ÌÍÕYH    ÌÍÕÛ
ÕRPÝÜX]SX[
    ][ÝÉ][ÝË    ÌÍÕY
ÈMË   ÌÍÔÔ×ÑUÒQT
B[[

** Tested 5/22/2008 Autoit Ver v3.2.12.0

8)

Edited by Valuater

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