How can I access the SelectionChangeFcn callback from the Property Inspector in MATLAB 7.4 (R2007a)?

10 views (last 30 days)
I am building a GUI using the GUIDE Layout Editor. I am trying to access the “SelectionChangeFcn” property for my uibuttongroup. However, this property is not available to edit in the Property Inspector window.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 19 Oct 2016
The ability to access and modify the "SelectionChangeFcn" property in the Property Inspector of GUIDE is not available in MATLAB.
The automatically generated callback function can be accessed by right-clicking on the Button Group panel and selecting "View Callbacks > SelectionChangeFcn".
If you would like to modify the SelectionChangeFcn, you will need to GET the property of the Button Group graphics object as follows:
get(H,'SelectionChangeFcn')
and similarly you can SET it by :
set(H, 'SelectionChangeFcn',<VALUE>);
where, H is the handle to the uibuttongroup and {VALUE} should be replaced by the MATLAB code or a handle to a function that you desire to be executed when the selection change occurs.

More Answers (0)

Categories

Find more on Migrate GUIDE Apps in Help Center and File Exchange

Products


Release

R2007a

Community Treasure Hunt

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

Start Hunting!