hi im new for gui. Anybody can tel me what is meant by create function , delete function and button down function, when we can use it in gui?

 Akzeptierte Antwort

Jan
Jan am 2 Aug. 2011

3 Stimmen

The question is very basic. I recommend to read the Getting Started chapter in the documentation.
  • The CreateFcn is called, when a figure is created.
  • The DeleteFcn is called, when the figure is deleted.
  • The ButtonDownFcn is called, when the mouse is click over the figure area and no other GUI-element (e.g. a button) catchs the event.
To find corresponding locations in the documentation:
docsearch DeleteFcn

5 Kommentare

ram
ram am 2 Aug. 2011
thank you sir.then why we are mostly used callback function...
Jan
Jan am 2 Aug. 2011
@Ram: I do not understand the question.
ram
ram am 2 Aug. 2011
what is difference between these functions,mainly callback function.
Jan
Jan am 2 Aug. 2011
@Ram: It is still not getting clearer. You want to know the difference between these functions and what?
"Callback function" means, that the function is called, when an event is triggered. E.g. the three above shown properties of the FIGURE object contain pointers to the corresponding callback functions. E.g. button have callback functions also, which are called, if the button is clicked with the left ('Callback' property) or other mouse keys ('ButtonDownFcn' property).
ram
ram am 3 Aug. 2011
ok. i am cleared, thank you...

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Hilfe-Center und File Exchange

Tags

Gefragt:

ram
am 2 Aug. 2011

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by