Home > vbmeg > functions > common > utility > @file_dialog > private > close_gui.m

close_gui

PURPOSE ^

'Cancel' 'Done' push button$B$N(BCallback$B4X?t(B

SYNOPSIS ^

function [] = close_gui(obj, eventdata, dialog, action)

DESCRIPTION ^

 'Cancel' 'Done' push button$B$N(BCallback$B4X?t(B

 Copyright (C) 2011, ATR All Rights Reserved.
 License : New BSD License(see VBMEG_LICENSE.txt)

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [] = close_gui(obj, eventdata, dialog, action)
0002 % 'Cancel' 'Done' push button$B$N(BCallback$B4X?t(B
0003 %
0004 % Copyright (C) 2011, ATR All Rights Reserved.
0005 % License : New BSD License(see VBMEG_LICENSE.txt)
0006 
0007 this = get(dialog, 'UserData');
0008 switch lower(action)
0009   case 'done'
0010   case 'cancel',    
0011     this.public.current_dir = [];
0012     this.private.current_file = {};
0013 end
0014 
0015 % Dialog$B$rHsI=<(2=$9$k!#(B
0016 set(dialog, 'visible', 'off', 'UserData', this);

Generated on Mon 22-May-2023 06:53:56 by m2html © 2005