Discussion:
Binding Event Handlers to STC's ListView events
Stefano Mtangoo
2014-04-07 07:53:38 UTC
Permalink
If Am not Mistaken wxSTC uses wxListView to display Autocomplete. It will
be great for us to be able to bind and receive events from it.
Currently I use a hack on Scintilla and Platform to get selected event.
Even though it works, its a bad practice and gives me hard time to
update to wxWidgets, since I have to repatch it. So is there any interest
on this feature? I can volunteer to make one if it will be agreed.
What I think is basically something like this:

void NotifyItemSelected(void (wxEvtHandler::*handlerFuncName)(wxListEvent<http://docs.wxwidgets.org/trunk/classwx_list_event.html>
& event), wxEvtHandler& a)
{
//.....do binding here....
}

So will I do for any other needed Event (Currently only selected event
makes sense)

Sorry if there is a way to do this and I missed (of course I will be happy
to know it!
--
Please read http://www.wxwidgets.org/support/mlhowto.htm before posting.

To unsubscribe, send email to wx-users+***@googlegroups.com
or visit http://groups.google.com/group/wx-users
Loading...