Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - Português

Change language to:
English - Français - 日本語 -

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

Ajuda Scilab >> IGU > x_choices


interactive Xwindow choices through toggle buttons

Calling Sequence




vector of strings, title for the popup window.


a list of items items=list(item1,...,itemn), where each item is also a list of the following type : item=list('label',default_choice,choices). default_choice is an integer which gives the default toggle on entry and choices is a row vector of strings which gives the possible choices.


an integer vector which gives for each item the number of the selected toggle. If user exits dialog with "cancel" button rep is set to [].


Select items through toggle lists and return in rep the selected items

Type x_choices() to see an example.


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));
<< waitbar IGU 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:
Thu May 12 11:45:27 CEST 2011