ESC key on Combobox

Post Reply
Roberto Parisi
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

ESC key on Combobox

Post 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
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: ESC key on Combobox

Post by Antonio Linares »

Roberto,

Yes, you are right. Thanks! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply