WhiteCrow Posted October 16, 2006 Posted October 16, 2006 I've made a program wich uses quite a big list of items, when you select one item and push a button in the gui, the item will be used in a function. But what i need it to do also, is when a item in the list is doubleclicked, use it in the function. (same as button pressed) I tried to change the example from GUICtrlCreateListView doubleclick(from another topic) to work with a List, but i cant seem to get it to work.. Anybody got a idea how i can make it work ? Thanks in advance.
Valuater Posted October 16, 2006 Posted October 16, 2006 (edited) $list = guictrlcreatelist() while 1 $msg = guigetmsg() if $msg = $list then run( guictrlread($list)) wend just an idea 8) Edited October 16, 2006 by Valuater
GaryFrost Posted October 16, 2006 Posted October 16, 2006 http://www.autoitscript.com/forum/index.ph...st&p=232752 SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
WhiteCrow Posted October 16, 2006 Author Posted October 16, 2006 $list = guictrlcreatelist()while 1$msg = guigetmsg()if $msg = $list then run( guictrlread($list))wendjust an idea8)Thanks for the reply, i already have that part I need to intercept doubleclick on the List item, thát i can not get to work.
WhiteCrow Posted October 16, 2006 Author Posted October 16, 2006 http://www.autoitscript.com/forum/index.ph...st&p=232752I missed your reply, becouse i was typing a reply.Thanks man, thats just what im looking for!
GaryFrost Posted October 16, 2006 Posted October 16, 2006 I missed your reply, becouse i was typing a reply.Thanks man, thats just what im looking for! yw SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
WhiteCrow Posted October 16, 2006 Author Posted October 16, 2006 While i'm asking questions, i also got a GUICtrlCreateInput, with a search button next to it. Its working like this atm: fill something in the inputbox, and click the search button. What i would like is: type something in the inputbox, and press Enter to search something also. Again, Thanks in advance!
GaryFrost Posted October 16, 2006 Posted October 16, 2006 While i'm asking questions, i also got a GUICtrlCreateInput, with a search button next to it. Its working like this atm: fill something in the inputbox, and click the search button. What i would like is: type something in the inputbox, and press Enter to search something also. Again, Thanks in advance! GuiCtrlSetState(control id, $GUI_DEFBUTTON) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
WhiteCrow Posted October 16, 2006 Author Posted October 16, 2006 GuiCtrlSetState(control id, $GUI_DEFBUTTON) Why the hell did i not see that, works like a charm.. Thank you again
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