CreeTar Posted May 28, 2010 Share Posted May 28, 2010 Hi, short problem, while dragging my edit field does not recognize that something was dragged onto it. Opt("GUIOnEventMode", 1) GUICreate("test", -1, -1, 300, 300, $GUI_SS_DEFAULT_GUI, $WS_EX_ACCEPTFILES) ;so gui accept files GUISetOnEvent($GUI_EVENT_DROPPED, "dropdropdrop") ;no matter where i drag and drop, dropdropdrop is never called GUICtrlCreateInput("", 10, 10, 290, 290, $ES_MULTILINE) ;my edit GUICtrlSetState($GUI_DROPACCEPTED, -1) ;does also accept a drop I had before a version using no EventMode, but I found it cleaner for programming. Any tips? I searched the board but haven't found something, only non-eventmode examples. Regards Link to comment Share on other sites More sharing options...
jaberwacky Posted May 29, 2010 Share Posted May 29, 2010 (edited) Looks like that code is good, show us your dropdropdrop function please...No wait, GUICtrlSetState has wrong parameters. It should be GUICtrlSetState(-1, $GUI_DROPACCEPTED) Edited May 29, 2010 by jaberwocky6669 Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? Link to comment Share on other sites More sharing options...
CreeTar Posted May 29, 2010 Author Share Posted May 29, 2010 Looks like that code is good, show us your dropdropdrop function please...No wait, GUICtrlSetState has wrong parameters. It should be GUICtrlSetState(-1, $GUI_DROPACCEPTED)Wow, that is quite annoying ^^ i did it right in the one script and now messed it up precious 20min. of my life thanks a lot for spotting it 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