OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: Danell on October 27, 2008, 12:06:59 PM

Title: Using the Enter button
Post by: Danell on October 27, 2008, 12:06:59 PM
Hi. I wonder if there is some way of using the Enter button in a Listbox? I have a Listbox with blocks from where I insert blocks with a Insert button. But I also want to be able to insert the selected block when hitting the Enter button.

Thank you.
Title: Re: Using the Enter button
Post by: Fred Tomke on October 27, 2008, 01:20:21 PM
Hello Danell,

there's no OnReturnPressed event available for listboxes at this time.
Please have a test if the form closes immediately if you hit enter.
If so, catch the form's event OnCancelClose and get the current selection.

I'm out of office for the rest of the week. I hope that helps a bit. I've not the time today to create a example. Maybe other may help here.

Fred
Title: Re: Using the Enter button
Post by: Danell on October 27, 2008, 02:47:52 PM
Thanks!
It works perfect.