сильный текст Я пишу программу с графическим интерфейсом SciLab.У меня проблема.Я хочу попрактиковаться, когда я выбираю файл, адрес этого файла будет автоматически отображаться в окне графического интерфейса.
xdel(winsid());
clear;
clc;
//FileInformation=uigetfile(["*.txt"]);
//golbal window parameters
global margin_x margin_y;
global frame_w frame_h plot_w plot_h;
//window parameter initialization
frame_w=300;
frame_h=500;//frame width and height
plot_w=600;
plot_h=frame_h;//plot width and height
margin_x=15;
margin_y=15;//horizontal and vertical margin for elements
defaultfont="arial";
axes_w=3*margin_x+frame_w+plot_w; //axis width
axes_h=2*margin_y+frame_h;
demo=scf(100001);//create window with id=100001 and make it the current one
demo.background=-2;
demo.figure_position=[100 100];
demo.figure_name=gettext("profile prcessing");
demo.axes_size=[axes_w axes_h];
///////////////////////////////////////
//create menu
//remove menus and toolbars
delmenu(demo.figure_id, gettext("&File"));
delmenu(demo.figure_id, gettext("&Tools"));
delmenu(demo.figure_id, gettext("&Edit"));
delmenu(demo.figure_id, gettext("&?"));
toolbar(demo.figure_id,"off");
//new menu/////////////////////////////////////////////////////////////////
*h1=uimenu("parent",demo,"label",gettext... /////
("openfile"),"callback","information=uigetfile()");* /////
////////////////////////////////////////////////////////////////////////////
h2=uimenu("parent",demo,"label",gettext("About"),"callback","About();");
///
function About()
msg=msprintf(gettext("this program is developed for wear depth...
measurement. any unclear please contact ben XU"));
messagebox(msg,gettext("About"),"info","modal");
endfunction
///
//creating a frame
my_frame=uicontrol("parent",demo,"relief","groove","style","frame",...
"units","pixels","position",[margin_x margin_y frame_w frame_h],...
"horizontalalignment","center","background",[1 1 1],"tag","frame control");
//title of frame
my_frame_title=uicontrol("parent",demo,"style","text","string",...
"address of file","units","pixels","position",[30+margin_x ...
margin_y+frame_h-10 frame_w-60 20],...
"fontname",defaultfont,"fontsize",16,"horizontalalignment",...
"center","backgroun",[1 1 1],"tag","title_frame_control");
//
uicontrol("parent",demo,"style","text","string","address",...
"position",[20,240, 180, ...
20],"horizontalalignment","left","fontsize",14,"background",[1 1 1]);
////////////////////////////////////////////////////////////////////////////
*uicontrol("parent",demo,"style","edit","string",information,"position",...
[20,240,180,20],"horizontalalignment","left","fontsize",14,"background",...
[0.9 0.9 0.9],"tag","edi");*
////////////////////////////////////////////////////////////////////////////
, как я пометил квадратом "/".проблемы есть информация, почему не определена?Зачем ?как мне это сделать?
спасибо всем заранее.