larcerkev Posted December 26, 2011 Posted December 26, 2011 I was able to do it before but now for some reason I can't not sure what's wrong... #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 1050, 900, 492, 73) $Pic1 = GUICtrlCreatePic("C:\Users\Satan\Desktop\Monopoly\board.jpg", 0, 0, 0, 0) $Graphic1 = GUICtrlCreateGraphic(208, 157, 65, 67) GUICtrlSetGraphic($Graphic1, $GUI_GR_PENSIZE, 4) GUICtrlSetGraphic($Graphic1, $GUI_GR_COLOR, 0x000000) GUICtrlSetGraphic($Graphic1, $GUI_GR_ELLIPSE, 12, 9, 25, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd
Zedna Posted December 26, 2011 Posted December 26, 2011 GUICtrlCreateGraphic is always at bottom, see remarks in helpfile.You must use WinAPI or GDI/GDI+ for drawing on top of GUI.There are many examples in helpfile/on the forum Resources UDF ResourcesEx UDF AutoIt Forum Search
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