Bool CallFunction (char *name, wxMediaBuffer *media, wxKeyEvent& event, Bool tryChain = FALSE)
Bool CallFunction (char *name, wxMediaBuffer *media, wxMouseEvent& event, Bool tryChain = FALSE)
Calls the named event handler directly. If the function cannot be found or the found handler did not want to handle the event, FALSE is returned. If tryChain is TRUE, keymaps chained to this one are searched for the function name.
If the function is not found and tryChain is FALSE, an error is also sent to the
handler installed with
wxKeymap::SetErrorCallback (section
).