Using the Enter button

Started by Danell, October 27, 2008, 12:06:59 PM

Previous topic - Next topic

Danell

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.

Fred Tomke

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
Fred Tomke
Dipl.-Ing. (FH) Landespflege

[ landscaper - landscape developer - digital landscape and urban design]

Danell