Page 1 of 1

find function called in wxEventHandler::Connect

Posted: Mon Feb 14, 2011 4:42 pm
by evstevemd
Is there a way to find a function as called in Connet()/Bind()?

Re: find function called in wxEventHandler::Connect

Posted: Mon Feb 14, 2011 5:44 pm
by eranif
I am not sure I understand it.

Please provide an example

Eran

Re: find function called in wxEventHandler::Connect

Posted: Mon Feb 14, 2011 7:12 pm
by evstevemd
I mean where event handlers are called!
If you find any other function like Foo::Baa(int x) it is easily found where it is being called.
But I cannot find something like Foo::Baz(wxCommandEvent& e). But I know it is being called somewhere like this

Code: Select all

Connect(wxID_XXX, wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler(Foo::Baz), NULL, this);
But in CScope it returns nothing showing that the function is not called anywhere! Do I misunderstand CScope? :shock:

Re: find function called in wxEventHandler::Connect

Posted: Mon Feb 14, 2011 11:30 pm
by eranif
evstevemd wrote: Do I misunderstand CScope? :shock:
cscope is a great tool, but not when it comes to C++...

Have you tried:
Right click on the word 'Connect' and then 'Search | Find references' ?

If this fails, you can always use the 'Find in files'

Eran