teodoric666 Posted March 25 Share Posted March 25 hello I have a small problem with koda when I create a background image and buttons or input these do not work well even when putting the image in the background the image is here for exemple -https://fr.pngtree.com/freebackground/powder-smoke-colorful-background_2379658.html thank's image.au3 Link to comment Share on other sites More sharing options...
Solution Andreik Posted March 25 Solution Share Posted March 25 (edited) You can do something like this: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 598, 420, 192, 124) $Pic1 = GUICtrlCreatePic("C:\Users\dede\Desktop\test.jpg", 0, 8, 617, 425) GUICtrlSetState($Pic1, $GUI_DISABLE) $Button1 = GUICtrlCreateButton("Button1", 400, 112, 113, 49) $Button2 = GUICtrlCreateButton("Button2", 400, 176, 113, 57) $Input1 = GUICtrlCreateInput("Input1", 32, 8, 521, 21) $Input2 = GUICtrlCreateInput("Input2", 48, 360, 505, 21) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd Edit: by the way, use code tag when you want to post code instead of uploading the script. Edited March 25 by Andreik teodoric666 1 When the words fail... music speaks. 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