testgui.png
grey.gifOriginal topic can be found Hire, Where I took the code From: http://www.autoitscript.com/forum/index.php?showtopic=47651
Get: testgui.png & grey.gif Put them, UDF & Sample in same Folder
Run Sample. Vuala.
AutoIt Version.: 3.2.12.0 IS REQUIRED FOR THIS!!!!
1 more thing, This is How It works, We create Gui1 the background, Then we put the Gui2(This is ur gui now) on top of GUI1. So If you want to hide the GUI you will need to Hide Both GUIS!
If you wonder Why the code is not in Between Autoit Tags, its because the forum wont let me post it, Gives me a TAG Error...
Usage Sample
;~ ========================================================================================== ;~ Description ...: Skin Your GUI With GDIPlus.au3, Fast & Easy ;~ Syntax ........: ;~ _UDF_SKINGUI_MAKE($GUI_NAME) ;~ _UDF_SKINGUI_label($TEXT_COLOR,$TEXT,$LEFT,$TOP,$WIDTH,$HEIGHT) ;~ _UDF_SKINGUI_BUTTON($TEXT_COLOR,$TEXT_BKCOLOR,$TEXT,$LEFT,$TOP,$WIDTH,$HEIGHT) ;~ _UDF_SKINGUI_Checkbox($TEXT_COLOR,$TEXT_BKCOLOR,$TEXT,$LEFT,$TOP,$WIDTH,$HEIGHT,$STATE) ;~ _UDF_SKINGUI_RADIO($TEXT_COLOR,$TEXT_BKCOLOR,$TEXT,$LEFT,$TOP,$WIDTH,$HEIGHT,$STATE) ;~ _UDF_SKINGUI_DELETE($Form1_GUI) ;~ ;~ $MY_GUIIMAGE = 'testgui.png' ;~ $MY_GUIIMAGE2 = 'grey.gif' ;~ ;~ FileInstall('testgui.png', "testgui.png",0); use this To install ur GUI Image When you compile ur Script ;~ FileInstall('grey.gif', "grey.gif",0); use this To install ur GUI Image When you compile ur Script ;~ Remarks .......: ;~ Fore some Reason you cant make the Checkbox & Radio Background Transparent, so you will h ave to set the color manually. ;~ GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) is not working for some reason ;~ AutoIt Version.: 3.2.12.0 ;~ ========================================================================================== FileInstall('testgui.png', "testgui.png",0); use this To install ur GUI Image When you compile ur Script FileInstall('grey.gif', "grey.gif",0); use this To install ur GUI Image When you compile ur Script $MY_GUIIMAGE = 'testgui.png' $MY_GUIIMAGE2 = 'grey.gif' #include <GUIConstantsEx.au3> #include <UDF_Skin_GUI.au3> Opt("GUIOnEventMode", 1); Change to OnEvent mode HotKeySet('{esc}','CLOSEClicked'); ALT+1 Show / Hode Gui to tray #Region ### START Koda GUI section ### Form= $Form1 = _UDF_SKINGUI_MAKE('Form1') $Button1 = _UDF_SKINGUI_BUTTON(0x000000,0xD0DAF1,"Button1", 68, 128, 75, 25);~ [T_Color],[BG_Color],[Text],[LEFT],[TOP],[WIDTH],[HEIGHT] _UDF_SKINGUI_Checkbox(0x000000,0xD0DAF1,"Checkbox1", 46, 80, 97, 17,-1);~ [T_Color],[BG_Color],[Text],[LEFT],[TOP],[WIDTH],[HEIGHT],[State -1 = Checkked / State 0 = UNCheckked ] _UDF_SKINGUI_label(0x000000,'Hit Esc To exit',40, 56, 86, 17);~ [T_Color],[Text],[LEFT],[TOP],[WIDTH],[HEIGHT] _UDF_SKINGUI_RADIO(0x000000,0xD0DAF1,"Radio1", 68, 104, 80, 17,0);~ [T_Color],[BG_Color],[Text],[LEFT],[TOP],[WIDTH],[HEIGHT],[State -1 = Checkked / State 0 = UNCheckked ] GUICtrlCreateList("", 172, 56, 129, 97) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### ; GUI events GUICtrlSetOnEvent($Button1, "_Buttonclick") ;~ ======================================= Func _Buttonclick() MsgBox(0,'','You hit The button') EndFunc ;~ ======================================= Func CLOSEClicked() _UDF_SKINGUI_DELETE($Form1) Exit EndFunc ;~ ======================================= While 1 Sleep(1000); Idle around WEnd
Attached Files
Edited by goldenix, 09 June 2008 - 09:55 PM.








