Home > functions > common > utility > @file_dialog > private > fname_listbox.m

fname_listbox

PURPOSE ^

ファイル名一覧を表示するlist boxのCallback関数

SYNOPSIS ^

function [] = fname_listbox(obj, eventdata, dialog)

DESCRIPTION ^

 ファイル名一覧を表示するlist boxのCallback関数

 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 [] = fname_listbox(obj, eventdata, dialog)
0002 % ファイル名一覧を表示するlist boxのCallback関数
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 v = get(obj, 'Value');
0009 str = get(obj, 'String');
0010 
0011 % 選択ファイル名を更新する。
0012 this.private.current_file = {};
0013 for ii=1:length(v)
0014   this.private.current_file{ii} = deblank( str(v(ii),:) );
0015 end
0016 
0017 % DialogのGUIのpropertyを更新する。
0018 set(dialog, 'UserData', this);
0019 set_gui_property(dialog);

Generated on Tue 27-Aug-2013 11:46:04 by m2html © 2005