From: Ahmad on
I have registered couple of callbacks with my uicontrols. I have two questions (both might be quite silly):
(1) When I delete a control [delete(handle);], do I get rid of the callback too; or it keeps lingering in some space and I have to explicitly get rid of it?
(2) If i want to delete a callback, for example I want to delete 'uicontextmenu' callback, should I just do this:
set(handle, 'uicontextmenu', '');
or there is some other standard way of doing it?

thanks for bearing with, what could turn out to be, really dumb questions.

kudos,
From: Yair Altman on
"Ahmad" <ahmad.humyn(a)gmail.com> wrote in message <i2sur5$18c$1(a)fred.mathworks.com>...
> I have registered couple of callbacks with my uicontrols. I have two questions (both might be quite silly):
> (1) When I delete a control [delete(handle);], do I get rid of the callback too; or it keeps lingering in some space and I have to explicitly get rid of it?
> (2) If i want to delete a callback, for example I want to delete 'uicontextmenu' callback, should I just do this:
> set(handle, 'uicontextmenu', '');


Yes to both questions
Yair