Reputation: 1808
I am currently programming a GUI to display information for a robotic hand and when I right click any of the components in this GUI I cannot seem to find the Callback function. I have made a few other GUIs and I have not come across this problem before and I can't seem to find anyone with the same problem on Google.
Here is an example of what I mean:
Does anyone know how to fix this?
Upvotes: 0
Views: 1207
Reputation: 32930
The three callbacks you see (ButtonDownFcn
, CreateFcn
and DeleteFcn
) are the three callback functions that all graphical objects share in MATLAB. The Callback
callback is something unique to active interface objects, such as a button.
A callback function is invoked when the associated event occurs for that object. The code that you put into the callback depends on what you want it to do. Do you want your graph to respond to left mouse clicks? Then code into ButtonDownFcn
. Do you want it to respond to something else? Choose the appropriate callback instead.
Read more about it here...
Upvotes: 4