Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilabヘルプ >> GUI > x_choices

x_choices

トグルボタンにより選択を行う対話的Xwindow

呼び出し手順

rep=x_choices(title,items)

引数

title

文字列のベクトル, ポップアップウインドウの表題.

items

項目のリスト items=list(item1,...,itemn), ただし,各 item はそれ自体以下の型のリストです: item=list('label',default_choice,choices). default_choice は エントリのトグルのデフォルト値を指定する整数で, choices は選択肢を指定する文字列の 行ベクトルです.

rep

各要素が選択されたトグルの番号を 表す整数ベクトルです. ユーザが"cancel"ボタンを指定した場合, rep[] に設定されます.

説明

トグルリストから要素を選択し, 選択された要素をrepに返します.

例を表示するにはx_choices()を入力してください.

l1  = list('choice 1',1,['toggle c1','toggle c2','toggle c3']);
l2  = list('choice 2',2,['toggle d1','toggle d2','toggle d3']);
l3  = list('choice 3',3,['toggle e1','toggle e2']);
rep = x_choices('Toggle Menu',list(l1,l2,l3));
Report an issue
<< waitbar GUI x_choose >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Tue Feb 25 08:53:23 CET 2020