|
On 6/3/2011 2:36 AM, Aron Sceidt wrote:
> "Aron Sceidt"<sigarru87@gmail.com> wrote in message<isa93q$b42$1@newscl01ah.mathworks.com>...
>> I need to make a general function which will be called by many objects of my UI.
>However from inside this general function, I need to identify the caller of the function
>(which object). One solution that comes to mind is giving an id for each caller and
>passing it as a parameter when calling the function, but I think it's a little bit messy.
>
> Perhaps my real question here is.. from the handles and hObject how would you know
>which object must be changed (and actually change it). For example the value
if you use GUIDE, then hOject is the handle of the UI object
which made the callback.
--Nasser
|