Using UIButtongroup - selcback function

2 ビュー (過去 30 日間)
Aaron
Aaron 2011 年 5 月 16 日
I am currently using the uibuttongroup for 4 radio buttons. When I select one of the buttons I use the selbk callback to make a function call. This works great except I cannot pass another variable in when calling this function. I need this variable to pass in the information for the list box that I want to update based on selecting selecting on of the buttons. How can I get the list box information that need in the function?
here is my related code
handles.fdSourceSel = uibuttongroup('parent',handles.hf,'units','normalized','position',[0.0266 0.119 0.297 0.255],'title','Select FD'); set(handles.fdSourceSel,'SelectionChangeFcn',@selcbk); . . . function selcbk(source,eventdata)

回答 (1 件)

Aaron
Aaron 2011 年 5 月 17 日
I now realize this was kind of a dumb question. I just set a global variable to get the handles that I needed.

カテゴリ

Help Center および File ExchangeApp Building についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by