xref: /freebsd/contrib/dialog/samples/treeview4 (revision a96ef4501919d7ac08e94e98dc34b0bdd744802b)
1*a96ef450SBaptiste Daroussin#!/bin/sh
2*a96ef450SBaptiste Daroussin# $Id: treeview4,v 1.3 2020/11/26 00:05:52 tom Exp $
3*a96ef450SBaptiste Daroussin
4*a96ef450SBaptiste Daroussin. ./setup-vars
5*a96ef450SBaptiste Daroussin
6*a96ef450SBaptiste Daroussin. ./setup-tempfile
7*a96ef450SBaptiste Daroussin
8*a96ef450SBaptiste Daroussin$DIALOG --title "TREE VIEW DIALOG" \
9*a96ef450SBaptiste Daroussin	--help-button \
10*a96ef450SBaptiste Daroussin	--item-help \
11*a96ef450SBaptiste Daroussin	--treeview "TreeView demo" 0 0 0 \
12*a96ef450SBaptiste Daroussin		tag1 one   off 0 first \
13*a96ef450SBaptiste Daroussin		tag2 two   off 1 second \
14*a96ef450SBaptiste Daroussin		tag3 three on  2 third \
15*a96ef450SBaptiste Daroussin		tag4 four  off 1 fourth \
16*a96ef450SBaptiste Daroussin		tag5 five  off 2 fifth \
17*a96ef450SBaptiste Daroussin		tag6 six   off 3 sixth \
18*a96ef450SBaptiste Daroussin		tag7 seven off 3 seventh \
19*a96ef450SBaptiste Daroussin		tag8 eight off 4 eighth \
20*a96ef450SBaptiste Daroussin		tag9 nine  off 1 ninth 2> $tempfile
21*a96ef450SBaptiste Daroussin
22*a96ef450SBaptiste Daroussinreturncode=$?
23*a96ef450SBaptiste Daroussin
24*a96ef450SBaptiste Daroussin. ./report-tempfile
25