Double Click selection in list box dialog control

lmichels
Contributor
Contributor

Double Click selection in list box dialog control

lmichels
Contributor
Contributor

I've made a simple little tool where I select text from a predetermined list in a list box control and then click OK.  Some in my office feel it would be quicker if they could just double click the selection.  So I started looking into that possibility.  I found some sample code in the AutoCAD forums from 2006 that apparently did the trick but I can't get it to work for me, largely because I don't fully understand it and the code was not explained in any way.

 

My first question, without reposting and going into someone else's code, is: Does anyone have experience or knowledge of using a DCL list box control with the double click option? 

 

I have a working Dialog box that displays a list of the text which I can select from and works fine if I select and click ok.  I have added the "allow_accept = true" line to the list_box control, but everything falls apart in my main lisp routine where I don't know how to handle the double click.  If there is anyone out there with experience with these controls I would appreciate the help.

 

I'm very new to the forums so if there is additional information that would be helpful I would gladly post it.  Thanks in advance.

0 Likes
Reply
Accepted solutions (1)
366 Views
2 Replies
Replies (2)

jseefdrumr
Mentor
Mentor
Accepted solution
While I can't actually help with this problem, I can point out that if you cross-post this in the customization forums, you're likely to get more traction. Because even though you're trying to get this to happen in AutoCAD Electrical, it's a core function of 'Vanilla' ACAD and so any software based on vanilla should also be able to do this. The customization forums deal with this type of issue far more often than we do.


Jim Seefeldt
Electrical Engineering Technician


0 Likes

lmichels
Contributor
Contributor

Thanks for a quick point in the right direction.  I did a search on that forum before posting and came up with a wealth of hits to research.  I'll give them a look when able and go post if necessary.  Thanks again for your time and consideration!

0 Likes