[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] SF.net SVN: supercollider:[8317] trunk/build



Revision: 8317
          http://supercollider.svn.sourceforge.net/supercollider/?rev=8317&view=rev
Author:   jmfuo
Date:     2008-12-28 23:22:16 +0000 (Sun, 28 Dec 2008)

Log Message:
-----------
EZ Class Scheme revised in preparation for EZRanger.
New examples, new optional units label.  Simplified class and code.

Modified Paths:
--------------
    trunk/build/Help/GUI/EZ-GUI/EZGui.html
    trunk/build/Help/GUI/EZ-GUI/EZListView.html
    trunk/build/Help/GUI/EZ-GUI/EZLists.html
    trunk/build/Help/GUI/EZ-GUI/EZNumberSC.html
    trunk/build/Help/GUI/EZ-GUI/EZPopUpMenu.html
    trunk/build/Help/GUI/EZ-GUI/EZSliderSC.html
    trunk/build/SCClassLibrary/Common/GUI/Base/EZListView.sc
    trunk/build/SCClassLibrary/Common/GUI/Base/EZNumber.sc
    trunk/build/SCClassLibrary/Common/GUI/Base/EZPopUpMenu.sc
    trunk/build/SCClassLibrary/Common/GUI/Base/EZSlider.sc
    trunk/build/SCClassLibrary/Common/GUI/Base/EZgui.sc
    trunk/build/SCClassLibrary/Common/GUI/ViewRedirect.sc

Modified: trunk/build/Help/GUI/EZ-GUI/EZGui.html
===================================================================
--- trunk/build/Help/GUI/EZ-GUI/EZGui.html	2008-12-28 21:28:39 UTC (rev 8316)
+++ trunk/build/Help/GUI/EZ-GUI/EZGui.html	2008-12-28 23:22:16 UTC (rev 8317)
@@ -18,14 +18,13 @@
 p.p9 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica}
 p.p10 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica; min-height: 17.0px}
 p.p11 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica; min-height: 14.0px}
-p.p12 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; color: #001ee6}
 span.s1 {font: 18.0px Helvetica}
-span.s2 {color: #2040df}
+span.s2 {color: #3e54c5}
 span.s3 {color: #000000}
 span.s4 {text-decoration: underline}
-span.s5 {color: #454c78}
-span.s6 {color: #5d67a2}
-span.s7 {color: #5d638e}
+span.s5 {color: #4a5070}
+span.s6 {color: #656b96}
+span.s7 {color: #0000ff}
 span.Apple-tab-span {white-space:pre}
 </style>
 </head>
@@ -68,48 +67,12 @@
 <p class="p8"><b><span class="Apple-tab-span">	</span>enabled_(bool)</b></p>
 <p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets if the list is enabled.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bool </b>- An Instance of <a href="../../Core/Boolean.html"><span class="s6">Boolean</span></a>. Default is true;</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bool </b>- An Instance of <a href="../../Core/Boolean.html"><span class="s6">Boolean</span></a>. Default is true;<span class="Apple-tab-span">	</span></p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>bounds</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>bounds_(rect)</b></p>
+<p class="p8"><b><span class="Apple-tab-span">	</span>font_(font)</b></p>
 <p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets the bounds of view, and adjusts the components.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>rect </b>- An Instance of <a href="../../Geometry/Rect.html"><span class="s6">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s6">Point</span></a>;</p>
-<p class="p11"><br></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelPosition</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelPosition_(pos)</b></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets the label position. The width and height of the label return to the defaults: 80@xxxxxxxxxxx or this.width@20;</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>pos </b>- \left or \top</p>
-<p class="p11"><br></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelWidth</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelWidth_(width)</b></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets the width of the label to <b>width</b>, and adjusts the widget.bounds.. Does nothing if <b>labelPosition</b>=\top;</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>width </b>- A number;</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>font </b>- An Instance of <a href="../GUI-Tools/Font.html"><span class="s7">Font</span></a>;<span class="Apple-tab-span">	</span></p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelHeight</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelHeight_(height)</b></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets the height of the label to <b>height</b>, and adjusts the widget.bounds. Does nothing if <b>labelPosition</b>=\left;</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>height </b>- A number;</p>
-<p class="p11"><br></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>gap</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>gap_(int)</b></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>The vertical or horizontal</p>
-<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>int </b>- by default, the view tries to get its parent's gap.x, otherwise it defaults to 4. Setting it overrides these.</p>
 <p class="p7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p6"><b>Accessing GUI components</b></p>
-<p class="p7"><span class="Apple-tab-span">	</span></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>view</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span></b><span class="Apple-tab-span">	</span>Returns the enclosing compositeView.</p>
-<p class="p7"><br></p>
-<p class="p7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelView_(arg1)</b></p>
-<p class="p8"><b><span class="Apple-tab-span">	</span>labelView</b></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span></b><span class="Apple-tab-span">	</span></p>
-<p class="p12"><span class="s3"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>An <a href="../Cocoa-GUI/SCStaticText.html"><span class="s4">SCStaticText</span></a></span><span class="s7"> view</span></p>
 </body>
 </html>

Modified: trunk/build/Help/GUI/EZ-GUI/EZListView.html
===================================================================
--- trunk/build/Help/GUI/EZ-GUI/EZListView.html	2008-12-28 21:28:39 UTC (rev 8316)
+++ trunk/build/Help/GUI/EZ-GUI/EZListView.html	2008-12-28 23:22:16 UTC (rev 8317)
@@ -24,16 +24,17 @@
 p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
 p.p16 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; color: #000000; min-height: 14.0px}
 span.s1 {font: 18.0px Helvetica}
-span.s2 {color: #2946d8}
-span.s3 {color: #5f689f}
-span.s4 {color: #3e54c5}
-span.s5 {color: #61699c}
+span.s2 {color: #4357c0}
+span.s3 {color: #666c94}
+span.s4 {color: #505fb1}
+span.s5 {color: #676d92}
 span.s6 {font: 11.0px Monaco}
-span.s7 {color: #000000}
-span.s8 {color: #0000bf}
-span.s9 {color: #007300}
-span.s10 {color: #606060}
-span.s11 {color: #bf0000}
+span.s7 {color: #0020f6}
+span.s8 {color: #000000}
+span.s9 {color: #0000bf}
+span.s10 {color: #007300}
+span.s11 {color: #606060}
+span.s12 {color: #bf0000}
 span.Apple-tab-span {white-space:pre}
 </style>
 </head>
@@ -52,99 +53,103 @@
 <p class="p2"><br></p>
 <p class="p4"><b>Creation / Class Methods</b></p>
 <p class="p5"><br></p>
-<p class="p6"><b><span class="Apple-tab-span">	</span>*new (parent, bounds, label, items, globalAction, initVal, initAction, labelWidth, labelPosition, gap)</b></p>
+<p class="p6"><b><span class="Apple-tab-span">	</span>*new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth, labelHeight,layout,gap)</b></p>
 <p class="p7"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>parent </b>- The parent view or window. If the parent is nil, then EZListView will create its own <a href="../Main-GUI/Window.html"><span class="s4">Window</span></a>, and place it conveniently on the screen if the bounds are a <a href="../../Geometry/Point.html"><span class="s4">Point</span></a>. If the bounds are a <a href="../../Geometry/Rect.html"><span class="s4">Rect</span></a>, then the Rect determines the window bounds.</p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bounds </b>- An instance of <a href="../../Geometry/Rect.html"><span class="s5">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s5">Point</span></a>. Default value is <span class="s6">160@200</span>.</p>
-<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- The label. Default value is nil. If nil, then no SCStaticText is created. If you set <b>label</b> later, the labelView will be created.</p>
+<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- The label. Default value is nil. If nil, then no SCStaticText is created.<span class="Apple-converted-space"> </span></p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>items </b>- Default value is nil. An Array of <a href="../../Collections/Association.html"><span class="s5">Association</span></a>s ['label' -&gt; {arg listObj; value}, ].</p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>globalAction </b>- a Global function to be performed in addition to the item functions {arg listObj; value}.</p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initVal </b>- Initial <b>value</b> of the List, i.e. the index selected. Default value is 0.</p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initAction </b>- An instance of <a href="../../Core/Boolean.html"><span class="s5">Boolean</span></a>. Performs the action at <b>initVal</b> on creation of the list, plus the <b>globalAction</b>. Default value is false.</p>
-<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelWidth </b>- Default value is 80. Not used if <b>labelPosition</b> is top.</p>
-<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelPosition</b>- \top of \left. default is left;</p>
-<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>gap </b>- by default, the view tries to get its parent's gap.x, otherwise it defaults to 4. Setting it overrides these</p>
+<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelWidth </b>- Default value is 80. Not used if <b>layout</b> is \vert.</p>
+<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelHeight </b>- Default value is 20. Not used if <b>layout</b> is \horz.</p>
+<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>layout</b>- \vert or \horz. default is vert;</p>
+<p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>gap </b>- A <a href="../../Geometry/Point.html"><span class="s7">Point</span></a>. By default, the view tries to get its parent's gap, otherwise it defaults to 2@2. Setting it overrides these.</p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p11"><span class="s7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// default with label on top</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s8">Window</span>.new.front;</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s8">FlowLayout</span>(w.view.bounds);</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s8">EZListView</span>.new(w,</p>
+<p class="p11"><span class="s8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// default with vertical layout</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s9">Window</span>.new.front;</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s9">FlowLayout</span>(w.view.bounds);</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s9">EZListView</span>.new(w,</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>230@230,</p>
-<p class="p12"><span class="s7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>"An SCListView:"<span class="s7">,</span></p>
+<p class="p12"><span class="s8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>"An SCListView:"<span class="s8">,</span></p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="Apple-tab-span">	</span></p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">\item0</span> -&gt;{<span class="s8">|a|</span> (<span class="s10">"this is item 0"</span>).postln},</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">\item1</span> -&gt;{<span class="s8">|a|</span> (<span class="s10">"this is item 1"</span>).postln},</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">\item2</span> -&gt;{<span class="s8">|a|</span> (<span class="s10">"this is item 2"</span>).postln},</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item0</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 0"</span>).postln},</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item1</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 1"</span>).postln},</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item2</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 2"</span>).postln},</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>],</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>globalAction: {<span class="s10">"this is a global action"</span>.postln},</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>globalAction: {<span class="s11">"this is a global action"</span>.postln},</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initVal: 2,</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initAction: <span class="s8">true</span>,</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelWidth: 120</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initAction: <span class="s9">true</span>,</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelWidth: 120,</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelHeight: 16,</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>layout: <span class="s10">\vert</span>,</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>gap: 2@2</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>);</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>)</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p11"><span class="s7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// or a more simple syntax:</p>
+<p class="p11"><span class="s8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// or a more simple syntax (uses decorator gap settings):</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s8">Window</span>.new.front;</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s8">FlowLayout</span>(w.view.bounds);</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s8">EZListView</span>.new(w,200@230, <span class="s10">" List:"</span>);</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s9">\item0</span>, {<span class="s10">"this is item 0"</span>. postln});</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s9">\item1</span>, {<span class="s10">"this is item 1"</span>. postln});</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s9">\item2</span>, {<span class="s10">"this is item 2"</span>. postln});</p>
-<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.labelView.background_(<span class="s8">Color</span>.grey).stringColor_(<span class="s8">Color</span>.white)</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s9">Window</span>.new.front;</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s9">FlowLayout</span>(w.view.bounds);</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s9">EZListView</span>.new(w,200@230, <span class="s11">" List:"</span>);</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item0</span>, {<span class="s11">"this is item 0"</span>. postln});</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item1</span>, {<span class="s11">"this is item 1"</span>. postln});</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item2</span>, {<span class="s11">"this is item 2"</span>. postln});</p>
+<p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.labelView.background_(<span class="s9">Color</span>.grey).stringColor_(<span class="s9">Color</span>.white)</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>)</p>
 <p class="p3"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p4"><b>Examples</b></p>
 <p class="p7"><span class="Apple-tab-span">	</span></p>
 <p class="p11">// Creates its own window if parentView is nil:</p>
 <p class="p10">(</p>
-<p class="p10">g = <span class="s8">EZListView</span>.new(label: <span class="s10">" My PopUp List: "</span>);</p>
-<p class="p10">g.addItem(<span class="s9">\item0</span>, {<span class="s10">"this is item 0"</span>. postln});</p>
-<p class="p10">g.addItem(<span class="s9">\item1</span>, {<span class="s10">"this is item 1"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item2</span>, {<span class="s10">"this is item 2"</span>. postln});</p>
-<p class="p14">g.labelView.background_(<span class="s8">Color</span>.grey).stringColor_(<span class="s8">Color</span>.white)</p>
+<p class="p10">g = <span class="s9">EZListView</span>.new(label: <span class="s11">" My PopUp List: "</span>);</p>
+<p class="p10">g.addItem(<span class="s10">\item0</span>, {<span class="s11">"this is item 0"</span>. postln});</p>
+<p class="p10">g.addItem(<span class="s10">\item1</span>, {<span class="s11">"this is item 1"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item2</span>, {<span class="s11">"this is item 2"</span>. postln});</p>
+<p class="p14">g.labelView.background_(<span class="s9">Color</span>.grey).stringColor_(<span class="s9">Color</span>.white)</p>
 <p class="p15"><br></p>
 <p class="p14">)</p>
 <p class="p15"><br></p>
-<p class="p11">// label on the left:</p>
+<p class="p11">// Layout horizontal:</p>
 <p class="p10">(</p>
-<p class="p10">g = <span class="s8">EZListView</span>.new(<span class="s8">nil</span>,205@180, <span class="s10">"Choose One: "</span>, labelPosition:<span class="s9">\left</span>);</p>
-<p class="p10">10.do{<span class="s8">|i|</span> g.addItem(<span class="s10">"item"</span>++i.asString, {(<span class="s10">"this is item"</span> ++i.asString). postln})};</p>
-<p class="p14">g.labelView.background_(<span class="s8">Color</span>.grey).stringColor_(<span class="s8">Color</span>.white)</p>
+<p class="p10">g = <span class="s9">EZListView</span>.new(<span class="s9">nil</span>,205@180, <span class="s11">"Choose One: "</span>, layout:<span class="s10">\horz</span>);</p>
+<p class="p10">10.do{<span class="s9">|i|</span> g.addItem(<span class="s11">"item"</span>++i.asString, {(<span class="s11">"this is item"</span> ++i.asString). postln})};</p>
+<p class="p14">g.labelView.background_(<span class="s9">Color</span>.grey).stringColor_(<span class="s9">Color</span>.white)</p>
 <p class="p14">)</p>
 <p class="p15"><br></p>
 <p class="p11">// No labelView created, so set the window title;</p>
 <p class="p10">(</p>
-<p class="p10">g = <span class="s8">EZListView</span>.new(bounds:200@230); <span class="s11">// no label</span></p>
-<p class="p10">12.do{<span class="s8">|i|</span> g.addItem(<span class="s10">"item"</span>++i.asString, {(<span class="s10">"this is item"</span> ++i.asString). postln})};</p>
-<p class="p14">g.view.parent.findWindow.name=<span class="s10">" choose item"</span>;</p>
+<p class="p10">g = <span class="s9">EZListView</span>.new(bounds:200@230); <span class="s12">// no label</span></p>
+<p class="p10">12.do{<span class="s9">|i|</span> g.addItem(<span class="s11">"item"</span>++i.asString, {(<span class="s11">"this is item"</span> ++i.asString). postln})};</p>
+<p class="p14">g.view.parent.findWindow.name=<span class="s11">" choose item"</span>;</p>
 <p class="p14">)</p>
 <p class="p16"><span class="Apple-tab-span">	</span></p>
 <p class="p11">// insert item;</p>
 <p class="p10">(</p>
-<p class="p10">g = <span class="s8">EZListView</span>.new(<span class="s8">nil</span>,200@200, <span class="s10">"List:"</span>);</p>
-<p class="p14">g.addItem(<span class="s9">\item0</span>, {<span class="s10">"this is item 0"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item1</span>, {<span class="s10">"this is item 1"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item2</span>, {<span class="s10">"this is item 2"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item4</span>, {<span class="s10">"this is item 4"</span>. postln});</p>
+<p class="p10">g = <span class="s9">EZListView</span>.new(<span class="s9">nil</span>,200@200, <span class="s11">"List:"</span>);</p>
+<p class="p14">g.addItem(<span class="s10">\item0</span>, {<span class="s11">"this is item 0"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item1</span>, {<span class="s11">"this is item 1"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item2</span>, {<span class="s11">"this is item 2"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item4</span>, {<span class="s11">"this is item 4"</span>. postln});</p>
 <p class="p14">)</p>
 <p class="p15"><br></p>
-<p class="p14">g.insertItem(3, <span class="s9">\item3</span>, {<span class="s10">"this is item 3"</span>. postln});</p>
+<p class="p14">g.insertItem(3, <span class="s10">\item3</span>, {<span class="s11">"this is item 3"</span>. postln});</p>
 <p class="p16"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p11">// remove item;</p>
 <p class="p10">(</p>
-<p class="p10">g = <span class="s8">EZListView</span>.new(<span class="s8">nil</span>,200@200, <span class="s10">"List:"</span>);</p>
-<p class="p14">g.addItem(<span class="s9">\item0</span>, {<span class="s10">"this is item 0"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item1</span>, {<span class="s10">"this is item 1"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item2</span>, {<span class="s10">"this is item 2"</span>. postln});</p>
-<p class="p14">g.addItem(<span class="s9">\item4</span>, {<span class="s10">"this is item 4"</span>. postln});</p>
-<p class="p14">g.insertItem(3, <span class="s9">\item3</span>, {<span class="s10">"this is item 3"</span>. postln});</p>
+<p class="p10">g = <span class="s9">EZListView</span>.new(<span class="s9">nil</span>,200@200, <span class="s11">"List:"</span>);</p>
+<p class="p14">g.addItem(<span class="s10">\item0</span>, {<span class="s11">"this is item 0"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item1</span>, {<span class="s11">"this is item 1"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item2</span>, {<span class="s11">"this is item 2"</span>. postln});</p>
+<p class="p14">g.addItem(<span class="s10">\item4</span>, {<span class="s11">"this is item 4"</span>. postln});</p>
+<p class="p14">g.insertItem(3, <span class="s10">\item3</span>, {<span class="s11">"this is item 3"</span>. postln});</p>
 <p class="p14">)</p>
 <p class="p15"><br></p>
 <p class="p14">g. removeItemAt(0);</p>
-<p class="p16"><br></p>
+<p class="p7"><br></p>
 </body>
 </html>

Modified: trunk/build/Help/GUI/EZ-GUI/EZLists.html
===================================================================
--- trunk/build/Help/GUI/EZ-GUI/EZLists.html	2008-12-28 21:28:39 UTC (rev 8316)
+++ trunk/build/Help/GUI/EZ-GUI/EZLists.html	2008-12-28 23:22:16 UTC (rev 8317)
@@ -20,10 +20,10 @@
 p.p11 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica}
 p.p12 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica; min-height: 14.0px}
 span.s1 {font: 18.0px Helvetica}
-span.s2 {color: #1638e6}
+span.s2 {color: #2946d8}
 span.s3 {color: #000000}
 span.s4 {text-decoration: underline}
-span.s5 {color: #5a65a5}
+span.s5 {color: #5f689f}
 span.Apple-tab-span {white-space:pre}
 </style>
 </head>
@@ -38,7 +38,7 @@
 <p class="p2"><br></p>
 <p class="p5"><b>Creation / Class Methods</b></p>
 <p class="p6"><br></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span>*new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth, labelPosition, gap)</b></p>
+<p class="p7"><b><span class="Apple-tab-span">	</span>*new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth, layout, gap)</b></p>
 <p class="p8"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p9"><b>Building and Changing the List</b></p>
 <p class="p10"><br></p>
@@ -50,7 +50,7 @@
 <p class="p7"><b><span class="Apple-tab-span">	</span>items</b></p>
 <p class="p7"><b><span class="Apple-tab-span">	</span>items_ (assocArray)</b></p>
 <p class="p8"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>assocArray </b>- An Array of <a href="../../Collections/Association.html"><span class="s5">Association</span></a>s including the labels and the item functions:  ['label' -&gt; {arg listObj; value}, ]. In menus, the<span class="Apple-converted-space"> </span>OS X graphics system gives special meanings to some characters. See <a href="../Cocoa-GUI/SCPopUpMenu.html"><span class="s5">SCPopUpMenu</span></a>;</p>
+<p class="p7"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>assocArray </b>- An Array of <a href="../../Collections/Association.html"><span class="s5">Association</span></a>s including the labels and the item functions: ['label' -&gt; {arg listObj; value}, ]. In menus, the OS X graphics system gives special meanings to some characters. See <a href="../Cocoa-GUI/SCPopUpMenu.html"><span class="s5">SCPopUpMenu</span></a>;</p>
 <p class="p8"><br></p>
 <p class="p7"><b><span class="Apple-tab-span">	</span>addItem (name, action)</b></p>
 <p class="p8"><b><span class="Apple-tab-span">	</span></b></p>

Modified: trunk/build/Help/GUI/EZ-GUI/EZNumberSC.html
===================================================================
--- trunk/build/Help/GUI/EZ-GUI/EZNumberSC.html	2008-12-28 21:28:39 UTC (rev 8316)
+++ trunk/build/Help/GUI/EZ-GUI/EZNumberSC.html	2008-12-28 23:22:16 UTC (rev 8317)
@@ -10,8 +10,8 @@
 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
-p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #ff0000}
-p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #ff0000; min-height: 14.0px}
+p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #da251a}
+p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #da251a; min-height: 14.0px}
 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
 p.p8 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; min-height: 12.0px}
@@ -22,33 +22,34 @@
 p.p13 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
 p.p14 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
 p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
-p.p16 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica}
-p.p17 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica; min-height: 17.0px}
-p.p18 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica; color: #000000; min-height: 17.0px}
-p.p19 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #000000}
+p.p16 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; color: #000000; min-height: 14.0px}
+p.p17 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica}
+p.p18 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica; min-height: 17.0px}
+p.p19 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica; color: #000000; min-height: 17.0px}
 span.s1 {font: 18.0px Helvetica}
-span.s2 {color: #2946d8}
-span.s3 {color: #4357c0}
-span.s4 {color: #505fb1}
-span.s5 {color: #676d92}
-span.s6 {font: 11.0px Monaco}
-span.s7 {color: #0000bf}
-span.s8 {color: #606060}
-span.s9 {color: #000000}
-span.s10 {color: #6f717f}
-span.s11 {color: #6f7181}
-span.s12 {color: #636a99}
-span.s13 {color: #494f72}
+span.s2 {color: #0c2eee}
+span.s3 {color: #485abb}
+span.s4 {color: #5763a9}
+span.s5 {color: #5f689f}
+span.s6 {color: #6c7188}
+span.s7 {font: 11.0px Monaco}
+span.s8 {color: #0000bf}
+span.s9 {color: #606060}
+span.s10 {color: #000000}
+span.s11 {color: #6f717a}
+span.s12 {color: #6f717c}
+span.s13 {color: #696f8e}
 span.s14 {color: #007300}
+span.s15 {font: 11.0px Monaco; color: #007300}
 span.Apple-tab-span {white-space:pre}
 </style>
 </head>
 <body>
 <p class="p1"><span class="s1"><b>EZNumberSC<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b></span><b>wrapper class for label, slider, number box</b><span class="s1"><b><span class="Apple-tab-span">	</span></b></span></p>
 <p class="p2"><br></p>
-<p class="p1"><b>Inherits from: Object : EZGui</b></p>
+<p class="p1"><b>Inherits from: Object : </b><a href="EZGui.html"><span class="s2"><b>EZGui</b></span></a></p>
 <p class="p3"><br></p>
-<p class="p1">EZNumber is wrapper class which creates an (optional) <a href="../Main-GUI/StaticText.html"><span class="s2">StaticText</span></a>, and a <a href="../Main-GUI/NumberBox.html"><span class="s2">NumberBox</span></a>. If the parent is nil, then EZNumber will create its own window. See <a href="EZGui.html"><span class="s3">EZGui</span></a> more options.</p>
+<p class="p1">EZNumber is wrapper class which creates an (optional) <a href="../Main-GUI/StaticText.html"><span class="s3">StaticText</span></a>, and a <a href="../Main-GUI/NumberBox.html"><span class="s3">NumberBox</span></a>. If the parent is nil, then EZNumber will create its own window. See <a href="EZGui.html"><span class="s4">EZGui</span></a> more options.</p>
 <p class="p2"><br></p>
 <p class="p4">CAUTION!!! This class will become <b>EZNumber</b> once it is swing compatible. Presently <b>EZNumber</b> will redirect to EZNumberSC if you are running CocoaGUI, and to EZNumberJ if you are running SwingGUI.</p>
 <p class="p5"><br></p>
@@ -59,35 +60,38 @@
 <p class="p8"><br></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>*new (parent, bounds, label, controlSpec, action, initVal, initAction, labelWidth, numberWidth)</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>parent </b>- The parent view or window. If the parent is nil, then EZNumber will create its own <a href="../Main-GUI/Window.html"><span class="s4">Window</span></a>, and place it conveniently on the screen if the bounds are a <a href="../../Geometry/Point.html"><span class="s4">Point</span></a>. If the bounds are a <a href="../../Geometry/Rect.html"><span class="s4">Rect</span></a>, then the Rect determines the window bounds.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bounds </b>- An instance of <a href="../../Geometry/Rect.html"><span class="s5">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s5">Point</span></a>. Default value is <span class="s6">160@20</span>.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>parent </b>- The parent view or window. If the parent is nil, then EZNumber will create its own <a href="../Main-GUI/Window.html"><span class="s5">Window</span></a>, and place it conveniently on the screen if the bounds are a <a href="../../Geometry/Point.html"><span class="s5">Point</span></a>. If the bounds are a <a href="../../Geometry/Rect.html"><span class="s5">Rect</span></a>, then the Rect determines the window bounds.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bounds </b>- An instance of <a href="../../Geometry/Rect.html"><span class="s6">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s6">Point</span></a>. Default value is <span class="s7">160@20</span>.</p>
 <p class="p12"><br></p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- The label. Default value is nil. If nil, then no SCStaticText is created. If you set <b>label</b> later, the labelView will be created.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>controlSpec </b>- The <a href="../../Control/ControlSpec.html"><span class="s2">ControlSpec</span></a> for scaling the value.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>action </b>- A <a href="../../Core/Kernel/Function.html"><span class="s2">Function</span></a> called when the value changes. The function is passed the EZNumber instance as its argument.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- The label. Default value is nil. If nil, then no SCStaticText is created.<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>controlSpec </b>- The <a href="../../Control/ControlSpec.html"><span class="s3">ControlSpec</span></a> for scaling the value.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>action </b>- A <a href="../../Core/Kernel/Function.html"><span class="s3">Function</span></a> called when the value changes. The function is passed the EZNumber instance as its argument.</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initVal </b>- The value to initialize the slider and number box with. If nil, then it uses the ControlSpec's default value.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initAction </b>- A <a href="../../Core/Boolean.html"><span class="s2">Boolean</span></a> indicating whether the action function should be called when setting the initial value. The default is false.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initAction </b>- A <a href="../../Core/Boolean.html"><span class="s3">Boolean</span></a> indicating whether the action function should be called when setting the initial value. The default is false.</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelWidth </b>- Number of pixels width for the label. default is 80..</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>numberWidth </b>- Number of pixels width for the number box. default is 80.</p>
-<p class="p10"><br></p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>unitWidth </b>- Number of pixels width for the unit label. default is 0.<span class="Apple-converted-space">  </span>If 0, then no unitLabel is created</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>layout</b>- \line2, or \horz. default is horz; \line2 is a two line version.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>gap </b>- A <a href="../../Geometry/Point.html"><span class="s2">Point</span></a>. By default, the view tries to get its parent's gap, otherwise it defaults to 2@2. Setting it overrides these.</p>
+<p class="p3"><br></p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s7">Window</span>.new.front;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">EZNumber</span>(w, 390@20,<span class="s8">" test "</span>)</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>.labelView.background_(<span class="s7">Color</span>.grey).stringColor_(<span class="s7">Color</span>.white)</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s8">Window</span>.new.front;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">EZNumber</span>(w, 150@20,<span class="s9">" test "</span>)</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// Simplest version, no parent view, so a window is created</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// Simplest version, no parent view, so a window is created</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">EZNumber</span>(label:<span class="s8">" test "</span>)</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">EZNumber</span>(label:<span class="s9">" test "</span>)</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>);</p>
-<p class="p10"><br></p>
+<p class="p16"><br></p>
 <p class="p1">The contained views can be accessed via the EZNumber instance variables:</p>
 <p class="p1"><span class="Apple-tab-span">	</span><b>labelView</b>, <b>numberView</b></p>
 <p class="p8"><br></p>
 <p class="p8"><br></p>
-<p class="p16"><b>Accessing Instance and Class Variables</b></p>
+<p class="p17"><b>Accessing Instance and Class Variables</b></p>
 <p class="p10"><span class="Apple-tab-span">	</span></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>numberView</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b><span class="Apple-tab-span">	</span></p>
@@ -97,7 +101,7 @@
 <p class="p9"><b><span class="Apple-tab-span">	</span>action_(arg1)</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>A function to be evaluated when the value changes. Te first argument will be the EZNumber.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>arg1 </b>- An instance of <a href="../../Core/Kernel/Function.html"><span class="s10">Function</span></a> or <a href="../../Core/Kernel/FunctionList.html"><span class="s11">FunctionList</span></a>. Default value is nil.</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>arg1 </b>- An instance of <a href="../../Core/Kernel/Function.html"><span class="s11">Function</span></a> or <a href="../../Core/Kernel/FunctionList.html"><span class="s12">FunctionList</span></a>. Default value is nil.</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>value</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b><span class="Apple-tab-span">	</span></p>
@@ -111,7 +115,7 @@
 <p class="p9"><b><span class="Apple-tab-span">	</span>controlSpec_(arg1)</b></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>controlSpec</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b><span class="Apple-tab-span">	</span></p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>An instance of <a href="../../Control/ControlSpec.html"><span class="s2">ControlSpec</span></a> for scaling the values.</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>An instance of <a href="../../Control/ControlSpec.html"><span class="s3">ControlSpec</span></a> for scaling the values.</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>value</b></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>value_ (val)</b></p>
@@ -133,174 +137,185 @@
 <p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Set the args after creation.</p>
 <p class="p10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p8"><br></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>visible</b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>visible_(bool)</b></p>
-<p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets it the component views are visible.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bool </b>- An Instance of <a href="../../Core/Boolean.html"><span class="s12">Boolean</span></a>. Default is true;</p>
 <p class="p12"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>enabled</b></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span>enabled_(bool)</b></p>
 <p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets if the list is enabled.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bool </b>- An Instance of <a href="../../Core/Boolean.html"><span class="s12">Boolean</span></a>. Default is true;</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bool </b>- An Instance of <a href="../../Core/Boolean.html"><span class="s13">Boolean</span></a>. Default is true;</p>
 <p class="p12"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>bounds</b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>bounds_(rect)</b></p>
-<p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets the bounds of view, and adjusts the components.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>rect </b>- An Instance of <a href="../../Geometry/Rect.html"><span class="s12">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s12">Point</span></a>;</p>
 <p class="p12"><br></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>labelPosition</b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>labelPosition_(pos)</b></p>
-<p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets the label position.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>pos </b>- \left or \top \ stack</p>
 <p class="p8"><br></p>
 <p class="p8"><br></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>label</b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span>label_(string)</b></p>
-<p class="p10"><b><span class="Apple-tab-span">	</span></b></p>
-<p class="p9"><b><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></b>Sets/gets it the label. Will add the label view if none was initially created.</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>string </b>- An Instance of <a href="../../Collections/String.html"><span class="s13">String</span></a>.</p>
 <p class="p8"><br></p>
-<p class="p16"><b>Examples</b></p>
-<p class="p17"><br></p>
+<p class="p17"><b>Examples</b></p>
 <p class="p18"><br></p>
+<p class="p19"><br></p>
 <p class="p15">// Simplest version, no parent view, so a window is created</p>
-<p class="p18"><br></p>
-<p class="p13">(</p>
-<p class="p13">g= <span class="s7">EZNumber</span>(label:<span class="s8">" test "</span>);</p>
+<p class="p19"><br></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// basic use</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s8">Window</span>.new.front;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(w, 170@16,<span class="s9">" test<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:30, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
 <p class="p13">);</p>
-<p class="p18"><br></p>
-<p class="p18"><br></p>
+<p class="p19"><br></p>
+<p class="p19"><br></p>
 <p class="p15">// lots of numberview on on view</p>
 <p class="p13">(</p>
-<p class="p13">w=<span class="s7">Window</span>.new.front;</p>
-<p class="p13">w.view.decorator=<span class="s7">FlowLayout</span>(w.view.bounds);</p>
+<p class="p13">w=<span class="s8">Window</span>.new.front;</p>
+<p class="p13">w.view.decorator=<span class="s8">FlowLayout</span>(w.view.bounds);</p>
 <p class="p13">w.view.decorator.gap=2@2;</p>
 <p class="p14"><br></p>
 <p class="p13">40.do{</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">EZNumber</span>(w, 390@16,<span class="s8">" test "</span>).value_(1.00.rand)</p>
-<p class="p13"><span class="Apple-tab-span">	</span>.labelView.background_(<span class="s7">Color</span>.grey).stringColor_(<span class="s7">Color</span>.white)</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(w, 170@16,<span class="s9">" test<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:30, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
 <p class="p13">};</p>
 <p class="p13">);</p>
 <p class="p14"><br></p>
 <p class="p14"><br></p>
-<p class="p13">(</p>
-<p class="p13">g = <span class="s7">EZNumber</span>(<span class="s7">nil</span>, 140 @ 20, <span class="s8">" Freq "</span>, <span class="s14">\freq</span>);</p>
-<p class="p13">g.labelView.background_(<span class="s7">Color</span>.grey).stringColor_(<span class="s7">Color</span>.white);</p>
+<p class="p15">// click these parenthese to see all features and layouts<span class="Apple-converted-space"> </span></p>
+<p class="p13">(<span class="Apple-converted-space">   </span></p>
+<p class="p14"><br></p>
+<p class="p14"><br></p>
+<p class="p15">/////////////////</p>
+<p class="p15">/// Layout \horz</p>
+<p class="p14"><br></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// all features</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 170@20,<span class="s9">" freq<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:30, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(-180,50);</p>
 <p class="p13">);</p>
 <p class="p14"><br></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// no unitView</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 170@20,<span class="s9">" freq<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:0, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(-180, -20);</p>
+<p class="p13">);</p>
 <p class="p14"><br></p>
-<p class="p15">// 2 line version</p>
-<p class="p13">(</p>
-<p class="p13">g = <span class="s7">EZNumber</span>(<span class="s7">nil</span>, 160 @ 70, <span class="s8">" Freq "</span>, <span class="s14">\freq</span>,</p>
-<p class="p13"><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> ez.value.postln })</p>
-<p class="p13"><span class="Apple-tab-span">	</span>.labelPosition_(<span class="s14">\top</span>);<span class="Apple-tab-span">	</span></p>
-<p class="p13">g.labelView.background_(<span class="s7">Color</span>.grey).stringColor_(<span class="s7">Color</span>.white);</p>
-<p class="p19">g.view.parent.findWindow.bounds=g.view.parent.findWindow.bounds.moveBy(200,0);</p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// no label, with unit. use window name as label</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 120@20,<span class="s8">nil</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:30, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(-180, -90);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.name=<span class="s9">"Freq"</span>;</p>
+<p class="p13">);</p>
 <p class="p14"><br></p>
+<p class="p14"><br></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// no units, no label; use window name as label;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 120@20, <span class="s8">nil</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:0, numberWidth:60,layout:<span class="s14">\horz</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(-180, -160);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.name=<span class="s9">"Freq"</span>;</p>
 <p class="p13">);</p>
 <p class="p14"><br></p>
-<p class="p15">// no labels</p>
+<p class="p15">/////////////////</p>
+<p class="p15">/// Layout \line2</p>
 <p class="p14"><br></p>
-<p class="p15">// set winow title if there is no label<span class="Apple-tab-span">	</span></p>
-<p class="p13">(<span class="Apple-tab-span">	</span></p>
-<p class="p13">g = <span class="s7">EZNumberSC</span>(<span class="s7">nil</span>, 130 @ 48, <span class="s7">nil</span>, <span class="s14">\freq</span>,</p>
-<p class="p13"><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> ez.value.postln }, 220);</p>
-<p class="p19">g.view.parent.findWindow.bounds=g.view.parent.findWindow.bounds.moveBy(-100,-100);</p>
-<p class="p19">g.view.parent.findWindow.name=<span class="s8">" Freq "</span>;</p>
-<p class="p14"><span class="Apple-tab-span">	</span></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// all features</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 120@44,<span class="s9">" freq<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:30, numberWidth:60,layout:<span class="s14">\line2</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(100,50);</p>
 <p class="p13">);</p>
 <p class="p14"><br></p>
-<p class="p14"><span class="Apple-tab-span">	</span></p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// no unitView, with label</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 170@44,<span class="s9">" freq<span class="Apple-converted-space">  </span>"</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:0, numberWidth:60,layout:<span class="s14">\line2</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(100, -50);</p>
+<p class="p13">);</p>
+<p class="p15"><span class="s10">(<span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// no unitView, no label; use window name as label</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g=<span class="s8">EZNumber</span>(<span class="s8">nil</span>, 170@20,<span class="s8">nil</span>, <span class="s14">\</span><span class="s15">freq</span>,unitWidth:0, numberWidth:60,layout:<span class="s14">\line2</span>);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.setColors(<span class="s8">Color</span>.grey,<span class="s8">Color</span>.white);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.bounds = g.view.parent.findWindow.bounds.moveBy(100,-150);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.view.parent.findWindow.name=<span class="s9">"Freq"</span>;</p>
+<p class="p13">);</p>
 <p class="p14"><br></p>
 <p class="p14"><br></p>
+<p class="p13">)<span class="Apple-tab-span">	</span></p>
+<p class="p14"><span class="Apple-tab-span">	</span></p>
+<p class="p14"><span class="Apple-tab-span">	</span></p>
+<p class="p14"><span class="Apple-tab-span">	</span></p>
 <p class="p15">// Sound example</p>
 <p class="p13">(</p>
 <p class="p15">// start server</p>
 <p class="p13">s.waitForBoot({</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">var</span> w, startButton, noteControl, cutoffControl, resonControl;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">var</span> balanceControl, ampControl;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">var</span> node, cmdPeriodFunc;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="s8">var</span> w, startButton, noteControl, cutoffControl, resonControl;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="s8">var</span> balanceControl, ampControl;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="s8">var</span> node, cmdPeriodFunc;</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// define a synth</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">SynthDef</span>(<span class="s8">"window-test"</span>, { <span class="s7">arg</span> note = 36, fc = 1000, rq = 0.25, bal=0, amp=0.4, gate = 1;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">var</span> x;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s7">Mix</span>.fill(4, {</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">LFSaw</span>.ar((note + {0.1.rand2}.dup).midicps, 0, 0.02)</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// define a synth</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="s8">SynthDef</span>(<span class="s9">"window-test"</span>, { <span class="s8">arg</span> note = 36, fc = 1000, rq = 0.25, bal=0, amp=0.4, gate = 1;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">var</span> x;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s8">Mix</span>.fill(4, {</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">LFSaw</span>.ar((note + {0.1.rand2}.dup).midicps, 0, 0.02)</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>});</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s7">RLPF</span>.ar(x, fc, rq).softclip;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s7">RLPF</span>.ar(x, fc, rq, amp).softclip;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s7">Balance2</span>.ar(x[0], x[1], bal);</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = x * <span class="s7">EnvGen</span>.kr(<span class="s7">Env</span>.cutoff, gate, doneAction: 2);</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">Out</span>.ar(0, x);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s8">RLPF</span>.ar(x, fc, rq).softclip;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s8">RLPF</span>.ar(x, fc, rq, amp).softclip;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = <span class="s8">Balance2</span>.ar(x[0], x[1], bal);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>x = x * <span class="s8">EnvGen</span>.kr(<span class="s8">Env</span>.cutoff, gate, doneAction: 2);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">Out</span>.ar(0, x);</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>}, [0.1, 0.1, 0.1, 0.1, 0.1, 0]</p>
 <p class="p13"><span class="Apple-tab-span">	</span>).load(s);</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// make the window</p>
-<p class="p13"><span class="Apple-tab-span">	</span>w = <span class="s7">Window</span>(<span class="s8">"another control panel"</span>, <span class="s7">Rect</span>(200, 400, 300, 180));</p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span>w.front; </span>// make window visible and front window.</p>
-<p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s7">FlowLayout</span>(w.view.bounds);</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// make the window</p>
+<p class="p13"><span class="Apple-tab-span">	</span>w = <span class="s8">Window</span>(<span class="s9">"another control panel"</span>, <span class="s8">Rect</span>(200, 400, 300, 180));</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span>w.front; </span>// make window visible and front window.</p>
+<p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s8">FlowLayout</span>(w.view.bounds);</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p13"><span class="Apple-tab-span">	</span>w.view.background = <span class="s7">Color</span>.rand;</p>
+<p class="p13"><span class="Apple-tab-span">	</span>w.view.background = <span class="s8">Color</span>.rand;</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// add a button to start and stop the sound.</p>
-<p class="p13"><span class="Apple-tab-span">	</span>startButton = <span class="s7">Button</span>(w, 75 @ 24);</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// add a button to start and stop the sound.</p>
+<p class="p13"><span class="Apple-tab-span">	</span>startButton = <span class="s8">Button</span>(w, 75 @ 24);</p>
 <p class="p13"><span class="Apple-tab-span">	</span>startButton.states = [</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="s8">"Start"</span>, <span class="s7">Color</span>.black, <span class="s7">Color</span>.green],</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="s8">"Stop"</span>, <span class="s7">Color</span>.white, <span class="s7">Color</span>.red]</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="s9">"Start"</span>, <span class="s8">Color</span>.black, <span class="s8">Color</span>.green],</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="s9">"Stop"</span>, <span class="s8">Color</span>.white, <span class="s8">Color</span>.red]</p>
 <p class="p13"><span class="Apple-tab-span">	</span>];</p>
-<p class="p13"><span class="Apple-tab-span">	</span>startButton.action = {<span class="s7">|view|</span></p>
+<p class="p13"><span class="Apple-tab-span">	</span>startButton.action = {<span class="s8">|view|</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>if (view.value == 1) {</p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// start sound</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node = <span class="s7">Synth</span>( <span class="s8">"window-test"</span>, [</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">"note"</span>, noteControl.value,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">"fc"</span>, cutoffControl.value,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">"rq"</span>, resonControl.value,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">"bal"</span>, balanceControl.value,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">"amp"</span>, ampControl.value.dbamp ]);</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// start sound</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node = <span class="s8">Synth</span>( <span class="s9">"window-test"</span>, [</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">"note"</span>, noteControl.value,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">"fc"</span>, cutoffControl.value,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">"rq"</span>, resonControl.value,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">"bal"</span>, balanceControl.value,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s9">"amp"</span>, ampControl.value.dbamp ]);</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>} {</p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// set gate to zero to cause envelope to release</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node.release; node = <span class="s7">nil</span>;</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// set gate to zero to cause envelope to release</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node.release; node = <span class="s8">nil</span>;</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>};</p>
 <p class="p13"><span class="Apple-tab-span">	</span>};</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// create controls for all parameters</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// create controls for all parameters</p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator.nextLine;</p>
-<p class="p13"><span class="Apple-tab-span">	</span>noteControl = <span class="s7">EZNumber</span>(w, 160 @ 24, <span class="s8">"Note"</span>, <span class="s7">ControlSpec</span>(24, 60, <span class="s14">\lin</span>, 1),</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> node.set( <span class="s8">"note"</span>, ez.value )}, 36);</p>
+<p class="p13"><span class="Apple-tab-span">	</span>noteControl = <span class="s8">EZNumber</span>(w, 160 @ 24, <span class="s9">"Note"</span>, <span class="s8">ControlSpec</span>(24, 60, <span class="s14">\lin</span>, 1),</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s8">|ez|</span> node.set( <span class="s9">"note"</span>, ez.value )}, 36);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator.nextLine;</p>
-<p class="p13"><span class="Apple-tab-span">	</span>cutoffControl = <span class="s7">EZNumber</span>(w, 160 @ 24, <span class="s8">"Cutoff"</span>, <span class="s7">ControlSpec</span>(200, 5000, <span class="s14">\exp</span>),</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> node.set( <span class="s8">"fc"</span>, ez.value )}, 1000);</p>
+<p class="p13"><span class="Apple-tab-span">	</span>cutoffControl = <span class="s8">EZNumber</span>(w, 160 @ 24, <span class="s9">"Cutoff"</span>, <span class="s8">ControlSpec</span>(200, 5000, <span class="s14">\exp</span>),</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s8">|ez|</span> node.set( <span class="s9">"fc"</span>, ez.value )}, 1000);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator.nextLine;</p>
-<p class="p13"><span class="Apple-tab-span">	</span>resonControl = <span class="s7">EZNumber</span>(w, 160 @ 24, <span class="s8">"Resonance"</span>, <span class="s7">ControlSpec</span>(0.1, 0.7),</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> node.set( <span class="s8">"rq"</span>, ez.value )}, 0.2);</p>
+<p class="p13"><span class="Apple-tab-span">	</span>resonControl = <span class="s8">EZNumber</span>(w, 160 @ 24, <span class="s9">"Resonance"</span>, <span class="s8">ControlSpec</span>(0.1, 0.7),</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s8">|ez|</span> node.set( <span class="s9">"rq"</span>, ez.value )}, 0.2);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator.nextLine;</p>
-<p class="p13"><span class="Apple-tab-span">	</span>balanceControl = <span class="s7">EZNumber</span>(w, 160 @ 24, <span class="s8">"Balance"</span>, <span class="s14">\bipolar</span>,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> node.set( <span class="s8">"bal"</span>, ez.value )}, 0);</p>
+<p class="p13"><span class="Apple-tab-span">	</span>balanceControl = <span class="s8">EZNumber</span>(w, 160 @ 24, <span class="s9">"Balance"</span>, <span class="s14">\bipolar</span>,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s8">|ez|</span> node.set( <span class="s9">"bal"</span>, ez.value )}, 0);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.view.decorator.nextLine;</p>
-<p class="p13"><span class="Apple-tab-span">	</span>ampControl = <span class="s7">EZNumber</span>(w, 160 @ 24, <span class="s8">"Amp"</span>, <span class="s14">\db</span>,</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s7">|ez|</span> node.set( <span class="s8">"amp"</span>, ez.value.dbamp )}, -6);</p>
+<p class="p13"><span class="Apple-tab-span">	</span>ampControl = <span class="s8">EZNumber</span>(w, 160 @ 24, <span class="s9">"Amp"</span>, <span class="s14">\db</span>,</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>{<span class="s8">|ez|</span> node.set( <span class="s9">"amp"</span>, ez.value.dbamp )}, -6);</p>
 <p class="p14"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// set start button to zero upon a cmd-period</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// set start button to zero upon a cmd-period</p>
 <p class="p13"><span class="Apple-tab-span">	</span>cmdPeriodFunc = { startButton.value = 0; };</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="s7">CmdPeriod</span>.add(cmdPeriodFunc);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="s8">CmdPeriod</span>.add(cmdPeriodFunc);</p>
 <p class="p14"><span class="Apple-tab-span">	</span></p>
-<p class="p15"><span class="s9"><span class="Apple-tab-span">	</span></span>// stop the sound when window closes and remove cmdPeriodFunc.</p>
+<p class="p15"><span class="s10"><span class="Apple-tab-span">	</span></span>// stop the sound when window closes and remove cmdPeriodFunc.</p>
 <p class="p13"><span class="Apple-tab-span">	</span>w.onClose = {</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node.free; node = <span class="s7">nil</span>;</p>
-<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s7">CmdPeriod</span>.remove(cmdPeriodFunc);</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>node.free; node = <span class="s8">nil</span>;</p>
+<p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">CmdPeriod</span>.remove(cmdPeriodFunc);</p>
 <p class="p13"><span class="Apple-tab-span">	</span>};</p>
 <p class="p13">});</p>
 <p class="p13">)</p>

Modified: trunk/build/Help/GUI/EZ-GUI/EZPopUpMenu.html
===================================================================
--- trunk/build/Help/GUI/EZ-GUI/EZPopUpMenu.html	2008-12-28 21:28:39 UTC (rev 8316)
+++ trunk/build/Help/GUI/EZ-GUI/EZPopUpMenu.html	2008-12-28 23:22:16 UTC (rev 8317)
@@ -10,7 +10,7 @@
 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
-p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #656b96}
+p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #001ee6}
 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
 p.p6 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; min-height: 12.0px}
 p.p7 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica}
@@ -22,22 +22,21 @@
 p.p13 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
 p.p14 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #bf0000}
 p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000}
-p.p16 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #a41c14}
-p.p17 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
-p.p18 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco}
-p.p19 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #a41c14}
+p.p16 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #bf0000}
+p.p17 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #000000; min-height: 12.0px}
+p.p18 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #000000; min-height: 14.0px}
 span.s1 {font: 18.0px Helvetica}
-span.s2 {color: #3e54c5}
-span.s3 {color: #3850cb}
+span.s2 {color: #5763a9}
+span.s3 {color: #5461ad}
 span.s4 {color: #000000}
-span.s5 {color: #656b96}
-span.s6 {font: 11.0px Monaco}
-span.s7 {color: #0000bf}
-span.s8 {color: #007300}
-span.s9 {color: #606060}
-span.s10 {color: #0018b8}
-span.s11 {color: #356f14}
-span.s12 {color: #a41c14}
+span.s5 {text-decoration: underline}
+span.s6 {color: #6b718a}
+span.s7 {font: 11.0px Monaco}
+span.s8 {color: #0c2eee}
+span.s9 {color: #0000bf}
+span.s10 {color: #007300}
+span.s11 {color: #606060}
+span.s12 {color: #bf0000}
 span.Apple-tab-span {white-space:pre}
 </style>
 </head>
@@ -48,138 +47,142 @@
 <p class="p3"><br></p>
 <p class="p1">EZPopUpMenu is wrapper class which creates an (optional) label and a popUpMenu. It includes per item actions as well as a global action which are both evaluated upon selection of an item. Convenience methods for inserting and deleting menu items are also included . If the parent is nil, then EZPopUpMenu will create its own window.See <a href="EZGui.html"><span class="s3">EZGui</span></a> and <a href="EZLists.html"><span class="s3">EZLists</span></a> for all of the options.</p>
 <p class="p2"><br></p>
-<p class="p4"><span class="s4"><b>See also:</b> <a href="../Cocoa-GUI/SCPopUpMenu.html">SCPopUpMenu</a></span></p>
+<p class="p4"><span class="s4"><b>See also:</b> <a href="../Cocoa-GUI/SCPopUpMenu.html"><span class="s5">SCPopUpMenu</span></a></span></p>
 <p class="p2"><br></p>
 <p class="p5"><b>Some Important Issues Regarding EZPopUpMenu</b></p>
 <p class="p2"><br></p>
-<p class="p1">The convenience methods for EZPopUpMenu require that the items array is an array of associations of labels and functions, not like in <a href="../Cocoa-GUI/SCPopUpMenu.html"><span class="s5">SCPopUpMenu</span></a>, where items is simply an array of strings. If <b>label</b> is nil, then no staticText is created. If you set label later, a staticText will be created.</p>
+<p class="p1">The convenience methods for EZPopUpMenu require that the items array is an array of associations of labels and functions, not like in <a href="../Cocoa-GUI/SCPopUpMenu.html"><span class="s6">SCPopUpMenu</span></a>, where items is simply an array of strings. If <b>label</b> is nil, then no staticText is created. If you set label later, a staticText will be created.</p>
 <p class="p2"><br></p>
 <p class="p5"><b>Creation / Class Methods</b></p>
 <p class="p6"><br></p>
-<p class="p7"><b><span class="Apple-tab-span">	</span>*new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth)</b></p>
+<p class="p7"><b><span class="Apple-tab-span">	</span>*new (parentView, bounds, label, items, globalAction, initVal, initAction, labelWidth, labelHeight,layout,gap)</b></p>
 <p class="p8"><b><span class="Apple-tab-span">	</span></b></p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>parentView </b>- The parent view or window. If the parent is nil, then EZPopUpMenu will create its own <a href="../Main-GUI/Window.html"><span class="s2">Window</span></a>, and place it conveniently on the screen if the bounds are a <a href="../../Geometry/Point.html"><span class="s2">Point</span></a>. If the bounds are a <a href="../../Geometry/Rect.html"><span class="s2">Rect</span></a>, then the Rect determines the window bounds.</p>
 <p class="p10"><br></p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bounds </b>- An instance of <a href="../../Geometry/Rect.html"><span class="s5">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s5">Point</span></a>. Default value is <span class="s6">160@20</span>.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- the label. Default value is nil. If nil, then no SCStaticText is created. If you set <b>label</b> later, the labelView will be created.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>items </b>- Default value is nil. An Array of <a href="../../Collections/Association.html"><span class="s5">Association</span></a>s ['label' -&gt; {arg menuObj; value}, ].</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>bounds </b>- An instance of <a href="../../Geometry/Rect.html"><span class="s6">Rect</span></a> or <a href="../../Geometry/Point.html"><span class="s6">Point</span></a>. Default value is <span class="s7">160@20</span>.</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>label </b>- the label. Default value is nil. If nil, then no SCStaticText is created.<span class="Apple-converted-space"> </span></p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>items </b>- Default value is nil. An Array of <a href="../../Collections/Association.html"><span class="s6">Association</span></a>s ['label' -&gt; {arg menuObj; value}, ].</p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>globalAction </b>- a Global function to be performed in addition to the item functions {arg menuObj; value}.</p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initVal </b>- Initial <b>value</b> of the Menu, i.e. the index selected. Default value is 0.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initAction </b>- An instance of <a href="../../Core/Boolean.html"><span class="s5">Boolean</span></a>. Performs the action at <b>initVal</b> on creation of the menu, plus the <b>globalAction</b>. Default value is false.</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>initAction </b>- An instance of <a href="../../Core/Boolean.html"><span class="s6">Boolean</span></a>. Performs the action at <b>initVal</b> on creation of the menu, plus the <b>globalAction</b>. Default value is false.</p>
 <p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelWidth </b>- Default value is 80.</p>
-<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>gap </b>- by default, the view tries to get its parent's gap.x, otherwise it defaults to 4. Setting it overrides these.</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>labelHeight </b>- Default value is 20. Not used if <b>layout</b> is \horz.</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>layout</b>- \vert or \horz. default is horz;</p>
+<p class="p9"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><b>gap </b>- A <a href="../../Geometry/Point.html"><span class="s8">Point</span></a>. By default, the view tries to get its parent's gap, otherwise it defaults to 2@2. Setting it overrides these.</p>
 <p class="p8"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s7">Window</span>.new.front;</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s7">FlowLayout</span>(w.view.bounds);</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s7">EZPopUpMenu</span>.new(w,</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s9">Window</span>.new.front;</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s9">FlowLayout</span>(w.view.bounds);</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s9">EZPopUpMenu</span>.new(w,</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>230@20,</p>
-<p class="p12"><span class="s4"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>"An SCPopUpMenu:"<span class="s4">,</span></p>
+<p class="p12"><span class="s4"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>"An SCPopUpMenu: "<span class="s4">,</span></p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>[<span class="Apple-tab-span">	</span></p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">\item0</span> -&gt;{<span class="s7">|a|</span> (<span class="s9">"this is item 0"</span>).postln},</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">\item1</span> -&gt;{<span class="s7">|a|</span> (<span class="s9">"this is item 1"</span>).postln},</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s8">\item2</span> -&gt;{<span class="s7">|a|</span> (<span class="s9">"this is item 2"</span>).postln},</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item0</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 0"</span>).postln},</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item1</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 1"</span>).postln},</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s10">\item2</span> -&gt;{<span class="s9">|a|</span> (<span class="s11">"this is item 2"</span>).postln},</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>],</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>globalAction: {<span class="s9">"this is a global action"</span>.postln},</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>globalAction: {<span class="s11">"this is a global action"</span>.postln},</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initVal: 2,</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initAction: <span class="s7">true</span>,</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelWidth: 120</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>initAction: <span class="s9">true</span>,</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelWidth: 120,</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>labelHeight: 20,</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>layout: <span class="s10">\horz</span>,</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>gap: 2@2</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>);</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>)</p>
 <p class="p13"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p14"><span class="s4"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></span>// or a more simple syntax:</p>
 <p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>(</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s7">Window</span>.new.front;</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s7">FlowLayout</span>(w.view.bounds);</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s7">EZPopUpMenu</span>.new(w,200@20, <span class="s9">"Menu: "</span>);</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s8">\item0</span>, {<span class="s9">"this is item 0"</span>. postln});</p>
-<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s8">\item1</span>, {<span class="s9">"this is item 1"</span>. postln});</p>
-<p class="p15"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s8">\item2</span>, {<span class="s9">"this is item 2"</span>. postln});</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w=<span class="s9">Window</span>.new.front;</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>w.view.decorator = <span class="s9">FlowLayout</span>(w.view.bounds);</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g = <span class="s9">EZPopUpMenu</span>.new(w,200@20, <span class="s11">"Menu: "</span>);</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item0</span>, {<span class="s11">"this is item 0"</span>. postln});</p>
+<p class="p11"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item1</span>, {<span class="s11">"this is item 1"</span>. postln});</p>
+<p class="p15"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>g.addItem(<span class="s10">\item2</span>, {<span class="s11">"this is item 2"</span>. postln});</p>
 <p class="p15"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span>)</p>
 <p class="p3"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
 <p class="p5"><b>Examples</b></p>
-<p class="p3"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span></p>
+<p class="p3"><span class="Apple-tab-span">	</span><span class="Apple-tab-span">	</span><span class="s4"><span class="Apple-tab-span">	</span></span></p>
 <p class="p16">// try several examples together</p>
-<p class="p17">(</p>
-<p class="p3"><br></p>
+<p class="p15">(</p>
+<p class="p17"><br></p>
 <p class="p16">// many menus</p>
 <p class="p16">// inherits the parent's decorator gap.x</p>
-<p class="p3"><br></p>
-<p class="p17">(</p>
-<p class="p18">w=<span class="s10">Window</span>.new(<span class="s9">"oscillators"</span>, <span class="s10">Rect</span>(200,500,200,140)).front;</p>
-<p class="p18">w.view.decorator = <span class="s10">FlowLayout</span>(w.view.bounds).gap_(2@2);</p>
-<p class="p18">w.alwaysOnTop=<span class="s10">true</span>;</p>
-<p class="p18">5.do{<span class="s10">|i|</span></p>
-<p class="p18"><span class="Apple-tab-span">	</span>g = <span class="s10">EZPopUpMenu</span>.new(w,190@20, <span class="s9">"Oscillator % : "</span>.format(i+1));</p>
-<p class="p18"><span class="Apple-tab-span">	</span>g.addItem(<span class="s11">\off</span>, {<span class="s9">"off"</span>. postln});</p>
-<p class="p18"><span class="Apple-tab-span">	</span>g.addItem(<span class="s11">\sine</span>, {<span class="s9">"sine"</span>. postln});</p>

@@ Diff output truncated at 100000 characters. @@

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/