Borrar filtros
Borrar filtros

Radio buttons without GUIDE

1 visualización (últimos 30 días)
Nu9
Nu9 el 2 de Sept. de 2011
hi, i need to use radio buttons in my project.i've this code:
rd1 = uicontrol('style','radio',...
'units','pix',...
'position',[500 410 15 15],...
'string','',...
'callback',{@rd1_call});
function [] = rd1_call(src1){
f = make_subgui;
% error when it tries to execute the callback otherwise.
set(src,'deletefcn',{@fig_delet,f})}
i want to check the radio buttons but when it closes all the GUI's or stop the running program i want to un-check that, how can i do that?

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 4 de Sept. de 2011
You can add that "un-check the radio buttons" command inside the CloseRequestFcn callback function.
  6 comentarios
Fangjun Jiang
Fangjun Jiang el 4 de Sept. de 2011
Okay, then you need to use the SelectionChangeFcn callback. Search that on that page and follow the example.
Nu9
Nu9 el 4 de Sept. de 2011
it worked yeah, i can use now several cases into the SelectionChangeFcn callback, thanks

Iniciar sesión para comentar.

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by