ESC key on Combobox

ESC key on Combobox

Postby Roberto Parisi » Tue Dec 30, 2008 10:11 am

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
Roberto Parisi
 
Posts: 116
Joined: Thu Oct 13, 2005 5:14 pm
Location: Italy

Re: ESC key on Combobox

Postby Antonio Linares » Tue Dec 30, 2008 10:56 am

Roberto,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 101 guests