LucaMs Expert Licensed User Longtime User Aug 4, 2024 #1 Reflector has the AddEventHandler method, but not the RemoveEventHandler; how to do?
agraham Expert Licensed User Longtime User Aug 4, 2024 #2 I assume you mean jReflector library not Reflector library. You can't, just ignore the event when it happens if you don't want it. Upvote 0
I assume you mean jReflector library not Reflector library. You can't, just ignore the event when it happens if you don't want it.
LucaMs Expert Licensed User Longtime User Aug 4, 2024 #3 agraham said: You can't, just ignore the event when it happens if you don't want it Click to expand... I would like to add a KeyPressed handler to the selected Item of a CustomListView and remove it when the selection changes. I don't know if keeping the handlers active will create problems (maybe the performance hit will be insignificant). [BTW I was hasty, since the first attempt was to add that event to the CLV but it was not the ideal solution and, at the moment, I was unable to add it to the single Item] Upvote 0
agraham said: You can't, just ignore the event when it happens if you don't want it Click to expand... I would like to add a KeyPressed handler to the selected Item of a CustomListView and remove it when the selection changes. I don't know if keeping the handlers active will create problems (maybe the performance hit will be insignificant). [BTW I was hasty, since the first attempt was to add that event to the CLV but it was not the ideal solution and, at the moment, I was unable to add it to the single Item]
agraham Expert Licensed User Longtime User Aug 4, 2024 #4 LucaMs said: I don't know if keeping the handlers active will create problems (maybe the performance hit will be insignificant). Click to expand... Totally insignificant, especially if you ignore it. Just set a flag to check in the event handler and immediately return to ignore the event if set. Upvote 0
LucaMs said: I don't know if keeping the handlers active will create problems (maybe the performance hit will be insignificant). Click to expand... Totally insignificant, especially if you ignore it. Just set a flag to check in the event handler and immediately return to ignore the event if set.