motionman95 Posted June 24, 2009 Share Posted June 24, 2009 Hello everyone! I'm trying to detect double-clicks on items in a ListBox. The only problem is that what I find using the search feature is always for the ListView, and I haven't been able to find one that isn't. Is there a method to detect double-clicks in a listbox? Thanks! Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 24, 2009 Share Posted June 24, 2009 Open your helpfile and check _GUICtrlListBox_Create(), the example show how to do exactly that. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
motionman95 Posted June 24, 2009 Author Share Posted June 24, 2009 Whoops, hee hee...thanks! Link to comment Share on other sites More sharing options...
AdmiralAlkex Posted June 24, 2009 Share Posted June 24, 2009 Thanks again, AdmiralAlkex. I have 1 other problem: My listbox keeps displaying items in alphabetical order, despite the order I arrange them in. Is there a way to keep it from doing that?If you look in the helpfile for ListBox on the "style parameter" you will see that $LBS_SORT is one of the default values, which as you may guess, makes it sort the items for you. To override the default give it some other styles, something like this: (assuming you want all the defaults but not the sort) GUICtrlCreateList("some text", left, top , width , height , BitOr($WS_BORDER, $WS_VSCROLL)) Or: _GUICtrlListBox_Create($hWnd, "some text", $iX, $iY, $iWidth = 100, $iHeight = 200, BitOr($WS_HSCROLL, $WS_VSCROLL, $WS_BORDER)) .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface Link to comment Share on other sites More sharing options...
motionman95 Posted June 24, 2009 Author Share Posted June 24, 2009 I've fixed it already using just: GUICtrlCreateList("some text", left, top , width , height , 0) 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