How To Close My UIfigure In Handles (GUIDE) function

조회 수: 4(최근 30일)
Tyann Hardyn
Tyann Hardyn 2022년 11월 26일
Hi, Community
I just want to close my simple Uifigure in my GUIDE callback. Here is the code:
fig_agree = uifigure('Name', 'Jump In X', 'Position', [300 300 250 150],...
'Color', [0.04 0.33 0.4], 'Resize', 'Off') ;
bg_agree = uipanel(fig_agree,'Title', 'Choose Component To Be Re-Defined',...
'Position', [10 10 230 130], 'BackgroundColor', [0.04 0.33 0.4], 'ForegroundColor','w',...
'FontWeight', 'bold', 'TitlePosition', 'centertop', 'HighlightColor', 'w');
listX = uilistbox(bg_agree,...
'Items', {'H-Calculation', 'F-Calculation', 'D-Calculation'},...
'Position',[40 30 150 60],...
'Multiselect','on',...
'FontColor',[1 0.41 0.16], ...
'BackgroundColor', 'k');
sumbit = uibutton(fig_agree,...
'Text', 'SUBMIT',...
'BackgroundColor', [0.29 0.08 0],...
'Position',[50 20 150 20],...
'FontWeight','bold',...
'FontColor','w',...
'ButtonPushedFcn', ..... (When i Click so the fig_agree and its Child SHould To Be Closed)
Iam just want to close the figure when i press submit button. Because i run the code inside of callback function in GUIDE, so then it is become harder to create the ButtonPushedFcn because it should be connected to handles / guidata firsly, right?
So, if anyone could lend me a hand to solve my problem here, i ll be so grateful. Thank you so much /.\/.\/.\

답변(0개)

Community Treasure Hunt

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

Start Hunting!

Translated by