Re: How to temporarily disable an event handler
PB <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have never used it so may be I am misunderstanding its purpose, but there
is wxEventBlocker
<https://docs.wxwidgets.org/stable/classwx_event_blocker.html>; so perhaps
you could do something like (untested):
{
wxEventBlocker blocker(lv, wxEVT_LIST_ITEM_SELECTED);
lv->Select(item);
}
IMO, a bit cleaner than Bind/Unbind but as I said, I have no idea if it
works.
PB
--
Please read https://www.wxwidgets.org/support/mlhowto.htm before posting.
---
You received this message because you are subscribed to the Google Groups "wx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/a4466d87-9785-4916-ba3b-83d723ef7521n%40googlegroups.com.