No BSD License  

Highlights from
addcallback

Be the first to rate this file! 5 Downloads (last 30 days) File Size: 7.03 KB File ID: #18216
image thumbnail

addcallback

by Almar Klein

 

04 Jan 2008 (Updated 04 Jan 2008)

Add a function handle to a callback list. All functions in the list are run when the callback execut

| Watch this File

File Information
Description

Has the same functionality as IPTADDCALLBACK, but more:
- does not need image processing toolkit
- easier removal of callback functions
- allows passing arguments to the callback functions
- clean & transparant: contains the function LISTCALLBACK to view all callback functions

ADDCALLBACK( H, CALLBACK, FUNC_HANDLE )
adds the function handle FUNC_HANDLE to the list of functions to be called when the callback specified by CALLBACK executes.

REMOVECALLBACK( H, CALLBACK, FUNC_HANDLE )
removes all callback functions (for the specified callback) that have the specified function handle.

For compatibility, one can also use:
REMOVECALLBACK( H, CALLBACK, ID )

LISTCALLBACK
Gives the complete lists of all callback functions, sorted by object and callback.

MATLAB release MATLAB 7.2 (R2006a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Tag Activity for this File
Tag Applied By Date/Time
addcallback Almar Klein 22 Oct 2008 09:41:53
callback Almar Klein 22 Oct 2008 09:41:53
iptaddcallback Almar Klein 22 Oct 2008 09:41:53
events Almar Klein 22 Oct 2008 09:41:53
removecallback Minh Le 24 Feb 2011 19:57:19

Contact us at files@mathworks.com