<< waitbar GUI x_choose >>

Scilab Help >> 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 >>