1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| function main
x='0';
figure('userdata',x)
premiere
function premiere
clf
% h=uibuttongroup('Position',[0 0.2 .4 .2]);
uicontrol('Style','Radio','String','J''accepte les conditions',...
'pos',[5 50 200 30],'parent',gcf,'tag','0');
uicontrol('Style','Radio','String','Je n''accepte pas les conditions',...
'pos',[5 20 200 30],'parent',gcf,'tag','1');
uicontrol('Style','pushbutton','string','Suivant','position',[300 20 100 20],'callback',@suivant);
% set(h,'SelectionChangeFcn',@choix);
function suivant(obj,event)
x=get(gcf,'userdata');
nouvelle(x);
function choix(obj,event)
x=get(event.NewValue,'tag');
set(gcf,'userdata',x);
function nouvelle(x)
% close(gcf);
clf
% figure
if x=='0'
str='L''instalation est terminée';
else
str='BYE BYE';
end
uicontrol('Style','text','string',str,'position',[300 200 200 60],'FontSize',20,'FontWeight','bold');
uicontrol('Style','pushbutton','string','Précédent','position',[300 20 100 20],'callback',@precedent);
function precedent(obj,event)
% close(gcf);
premiere |
Partager