From: Ahmad on 29 Jul 2010 18:20 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 30 Jul 2010 02:05 "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
|
Pages: 1 Prev: fclose failure and "closed" file pointer coming back Next: looping again |