Re: How to temporarily disable an event handler

Andreas Falkenhahn <[email protected]>
Newsgroups gmane.comp.lib.wxwindows.general
Message-ID <[email protected]>
On 29.08.2023 at 21:59 Igor Korot wrote:

>>     lv->Unbind(wxEVT_LIST_ITEM_SELECTED);
>>     lv->Select(item);
>>     lv->Bind(wxEVT_LIST_ITEM_SELECTED);

> This should work just fine.
> Do you have any issues with that?

No, I was just wondering whether this was the canonical way to do it or
if there was a better way because binding and unbinding sounds like this
could come with some overhead but maybe this isn't true.

-- 
Best regards,
 Andreas Falkenhahn                            mailto:[email protected]

-- 
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/437071820.20230829221106%40falkenhahn.com.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.