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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<!--Converted with LaTeX2HTML 2K.1beta (1.48)
original version by: Nikos Drakos, CBLU, University of Leeds
* revised and updated by: Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Difficult Example</TITLE>
<META NAME="description" CONTENT="Difficult Example">
<META NAME="keywords" CONTENT="rtic">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="LaTeX2HTML v2K.1beta">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<LINK REL="STYLESHEET" HREF="rtic.css">
<LINK REL="next" HREF="node40.html">
<LINK REL="previous" HREF="node38.html">
<LINK REL="up" HREF="node36.html">
<LINK REL="next" HREF="node40.html">
</HEAD>
<BODY bgcolor="white">
<!--Navigation Panel-->
<A NAME="tex2html552"
HREF="node40.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next"
SRC="/usr/share/latex2html/icons/next.png"></A>
<A NAME="tex2html550"
HREF="node36.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up"
SRC="/usr/share/latex2html/icons/up.png"></A>
<A NAME="tex2html544"
HREF="node38.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous"
SRC="/usr/share/latex2html/icons/prev.png"></A>
<BR>
<B> Next:</B> <A NAME="tex2html553"
HREF="node40.html">State Space Example</A>
<B> Up:</B> <A NAME="tex2html551"
HREF="node36.html">Examples</A>
<B> Previous:</B> <A NAME="tex2html545"
HREF="node38.html">Simple Example</A>
<BR>
<BR>
<!--End of Navigation Panel-->
<H2><A NAME="SECTION00333000000000000000">
Difficult Example</A>
</H2>
This one shows the ability of the <TT>GUIparse</TT> to create code that will embed
columns inside other columns.
<P>
<P></P>
<DIV ALIGN="CENTER"><A NAME="1615"></A>
<TABLE>
<CAPTION ALIGN="BOTTOM"><STRONG>Figure 3.3:</STRONG>
Difficult Example. This example shows several columns and
sub-columns with a mixture of widgets.</CAPTION>
<TR><TD>
<DIV ALIGN="CENTER">
<IMG
WIDTH="460" HEIGHT="570" ALIGN="BOTTOM" BORDER="0"
SRC="img49.png"
ALT="\includegraphics[width=4in]{Figures/difficult.eps}">
</DIV></TD></TR>
</TABLE>
</DIV><P></P>
<P>
<PRE>
# More complicated project. This one uses a combination of columns
# and rows to achieve a different effect
# first the required information
inputs 1
outputs 1
data_size 1
# Let's greate a simple column
start_col h
label 'First Column'
slider_with_label 'k0',-100,100,10,0
slider_with_label 'k1',-200,200,20,1
slider_with_label 'k2',-300,300,30,2
slider_with_label 'k3', 0, 20, 3, 3
slider_with_label 'k4', 0, 100, 5, 4
spin_with_label 'k5', 0, 100, 5, 4
spin_with_label 'k6', 0, 100, 5, 4
end_col
# add a separator between the columns
v_separator
# now create a more complicated column
start_col n
label 'Second Column'
start_row n
start_col h
slider_with_label 'h5',-100,100,10,5
slider_with_label 'h6',-200,200,20,6
slider_with_label 'h7',0,2000,100,7
end_col
v_separator
start_col h
slider_with_label 'h8',-100,100,10,8
slider_with_label 'h9',-200,200,20,9
slider_with_label 'h10',0,2000,100,10
end_col
end_row
h_separator
slider_with_label 'My Big Gain\nFor Control',0,2000,100,11
h_separator
start_row n
start_col n
label 'Tiny sub-\ncolumn (1,2)'
slider -100,100,10,12
spin -200,200,20,13
spin 0,2000,100,14
end_col
v_separator
start_col n
label 'Tiny sub-\ncolumn (2,2)'
slider -100,100,10,15
spin -200,200,20,16
end_col
end_row
end_col
</PRE>
<P>
<BR><HR>
<ADDRESS>
Michael Barabanov
2001-06-19
</ADDRESS>
</BODY>
</HTML>
|