jacq Posted March 26, 2012 Share Posted March 26, 2012 (edited) Welcome. I want to create my own transparent style to the program. Maybe some suggestions. I want to use png. To be my window of the program. and that you could normally add buttons, text... I have this code but I can not display buttons: expandcollapse popupFileInstall('testgui.png', "tlo.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 = 'tlo.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 Edited April 1, 2012 by jacq Link to comment Share on other sites More sharing options...
gcue Posted March 26, 2012 Share Posted March 26, 2012 (edited) you can make the png be the backround of the windowGUICtrlCreatePic Edited March 26, 2012 by gcue 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