File: x_choices.man

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (35 lines) | stat: -rw-r--r-- 1,145 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.TH x_choices 1 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
x_choices - interactive Xwindow choices through toggle buttons
.SH CALLING SEQUENCE
.nf
rep=x_choices(title,items) 
.fi
.SH PARAMETERS
.TP
title
: vector of strings, title for the popup window.
.TP
items 
: a list of items \fVitems=list(item1,...,itemn)\fR, where each \fVitem\fR is also a list 
of the following type : \fVitem=list('label',default_choice,choices)\fR. \fVdefault_choice\fR
is an integer which gives the default toggle on entry and \fVchoices\fR is a 
row vector of strings which gives the possible choices.
.TP
rep
: an integer vector which gives for each item the number of the 
selected toggle. If user exits dialog with "cancel" button \fVrep\fR
is set to \fV[]\fR.
.SH DESCRIPTION
Select items through toggle lists and return in \fVrep\fR the selected 
items 

Type \fVx_choices()\fR to see an example.
.SH EXAMPLE
.nf
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));
.fi