Dialog eats WXK_ESCAPE for popup text ctr

ATS asteinarson at gmail.com
Sun Mar 9 14:47:46 PDT 2008


I want to edit items in a wxListBox that is put in a dialog. 

There's no API for that from wxListBox, so I had to put 
something together myself. 

After figuring where to pop up and edity ctrl, I show it 
and editing is just fine. But... 

Pressing Escape while editing closes the whole dialog, 
not just the edit popup as intended. 

I tracked deep into wx-MSW sources and it seems the key down 
event with WXK_ESCAPE never appears anywhere. Like MSW eats 
it completely. 

Any advice for using a popup control as child of a dialog
and surviving WXK_ESCAPE?  

Regards
// ATS. 





More information about the wx-users mailing list