Page 1 of 1

ESC key on Combobox

Posted: Tue Dec 30, 2008 10:11 am
by Roberto Parisi
I seen last fwh812 changes about ESC key in TComboBox and I guess the combobox KeyDown method has to be:

METHOD KeyDown( nKey, nFlags ) CLASS TComboBox

if nKey == VK_ESCAPE .and. ::IsOpen()
::Close()
return 1
endif

return Super:KeyDown( nKey, nFlags )

Regards,
Roberto Parisi

Re: ESC key on Combobox

Posted: Tue Dec 30, 2008 10:56 am
by Antonio Linares
Roberto,

Yes, you are right. Thanks! :-)