Accelerator Table on "Invisible" children

Joel Low joel at joelsplace.sg
Tue Aug 29 03:32:08 PDT 2006


Hi,

Setting the accelerator table for the parent control will also affect its
children. For example, setting a listctrl with an accelerator table would
also affect the edit control that is created during in-place editing.

However, the problem comes when the edit control generates events of its
own which we don't want. For example, we want the listctrl to delete an
entry when we press the delete key. But enter in-place editing, and press
delete. Lo and behold, the "delete" event handler fires too. Is this the
desired behaviour? If it is, how can I differentiate whether the event is
generated by the listctrl or it's edit control? Or am I using the wrong
thing for the task?

Joel 






More information about the wx-users mailing list