Creating Graphical User Interfaces |
|
Radio Buttons
You can determine the current state of a radio button from within its callback by querying the state of its Value
property, as illustrated in the following example:
Note
If you have radio buttons that are managed by a button group component, you must include the code to control them in the button group's SelectionChangeFcn callback function, not in the individual radio button Callback functions. A button group overwrites the Callback properties of radio buttons and toggle buttons that it manages. See Button Groups for more information.
|
| Toggle Button Callback | | Check Boxes | |
© 1994-2005 The MathWorks, Inc.