Dialog eats WXK_ESCAPE for popup text ctr
ATS
asteinarson at gmail.com
Mon Mar 10 10:35:06 PDT 2008
> I'd recommend using wxListCtrl which already supports in place editing.
> And then there is also wxEditableListBox but it does something more than
> you need.
Well, I needed to reorder items also, so wxEditableListBox is useful.
>
> A> Pressing Escape while editing closes the whole dialog,
> A> not just the edit popup as intended.
> A>
> A> I tracked deep into wx-MSW sources and it seems the key down
> A> event with WXK_ESCAPE never appears anywhere. Like MSW eats
> A> it completely.
>
> It is passed to EVT_CHAR_HOOK event handler which by default closes the
> dialog. You should define your own handler which would check if the text
> control is currently active and not do it if it is.
That's the piece that was missing. Is this a new event type for 2.9?
The better solution for me was to make
the popup edit ctrl check for a TLW parent and connect to its EVT_CHAR_HOOK.
Regards
// ATS.
>
> Regards,
> VZ
>
More information about the wx-users
mailing list