Scilab 6.0.1
- Scilabヘルプ
- GUI
- Borders
- Layouts
- Menus
- Tree
- about
- clipboard
- close
- consoleプロパティ
- createWindow
- exportUI
- figure
- findobj
- gcbo
- getcallbackobject
- getinstalledlookandfeels
- getlookandfeel
- getvalue
- 対話型エディタ
- loadGui
- messagebox
- printfigure
- printsetupbox
- progressionbar
- root_properties
- saveGui
- setlookandfeel
- toolbar
- toprint
- tree_show
- uicontrol
- uicontrolプロパティ
- uigetdir
- uigetfile
- uigetfont
- uiputfile
- usecanvas
- waitbar
- x_choices
- x_choose
- x_choose_modeless
- x_dialog
- x_matrix
- x_mdialog
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
loadGui
保存されたファイルからグラフィックユーザインターフェイスを読み込む
呼び出し手順
loadGui(filename)
引数
- filename
ファイルのパスを有する文字列
説明
loadGui
関数は,
saveGui
関数
により事前にファイルに保存された
グラフィックユーザインターフェイス
をScilabセッションに読み込む際に使用できます.
loadGui(filename)
は,
パスfilename
で
指定されたファイルに保存されたインターフェイスを読み込みます.
例
// 最初の例 f = figure("background", -2); h = uicontrol(f, "style", "text", ... "string", "This is a figure", ... "position", [210 180 300 100], ... "fontsize", 24, ... "backgroundcolor", [1 1 1]); saveGui(f, fullfile(TMPDIR, "foo")) close(f) loadGui(fullfile(TMPDIR, "foo")); // 2番目の例 f = figure("default_axes", "off", ... "dockable", "off", ... "figure_name", "Sélection", ... "axes_size", [200 200], ... "infobar_visible", "off", ... "menubar_visible", "off", ... "toolbar", "none", ... "toolbar_visible", "off", ... "layout", "gridbag"); h1 = uicontrol(f, "style", "text", ... "string", "Following List :", ... "fontsize", 15, ... "constraints", createConstraints("gridbag", [1 1 2 1], [1 0], "both")); h2 = uicontrol(f, "style", "popupmenu", ... "string", ["item1"; "item2"; "item3"], ... "value", 1, ... "fontsize", 15, ... "constraints", createConstraints("gridbag", [1 2 2 1], [1 0], "both"), ... "tag", "selection"); h3 = uicontrol(f, "style", "pushbutton", ... "string", "OK", ... "callback", "obj = findobj(""tag"", ""selection""); mprintf(""La valeur sélectionnée est : %s.\n"", obj.string(obj.value)); close(gcf())", ... "fontsize", 15, ... "constraints", createConstraints("gridbag", [1 3 1 1], [1 0], "both", "left")); h4 = uicontrol(f, "style", "pushbutton", ... "string", "CANCEL", ... "callback", "close(gcf())", ... "fontsize", 15, ... "constraints", createConstraints("gridbag", [2 3 1 1], [1 0], "both", "right")); saveGui(f, "TMPDIR/foo2.xml"); close(f) loadGui("TMPDIR/foo2.xml")
履歴
Version | Description |
5.5.0 | 関数 loadGui が導入されました. |
Report an issue | ||
<< 対話型エディタ | GUI | messagebox >> |