polymorphism: better names for .binaryValue and .booleanValue are .asInteger and...
[supercollider.git] / Help / Libraries / JITLib / GUI / PdefGui.html
blob84af3a6a472e6422be66f92d22f9106999d3042b
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <meta http-equiv="Content-Style-Type" content="text/css">
6 <title></title>
7 <meta name="Generator" content="Cocoa HTML Writer">
8 <meta name="CocoaVersion" content="1038.29">
9 <style type="text/css">
10 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica}
11 p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; min-height: 12.0px}
12 p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px}
13 p.p4 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #0000ee}
14 p.p5 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #cd0b0b}
15 p.p6 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco}
16 p.p7 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #008417}
17 p.p8 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica}
18 p.p9 {margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Helvetica; min-height: 17.0px}
19 p.p10 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica}
20 p.p11 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 12.0px Helvetica; min-height: 14.0px}
21 p.p12 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica}
22 p.p13 {margin: 0.0px 0.0px 0.0px 85.0px; text-indent: -85.0px; font: 12.0px Helvetica; min-height: 14.0px}
23 p.p14 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; min-height: 12.0px}
24 p.p15 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #426f13}
25 p.p16 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #737373}
26 p.p17 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #1d20b9}
27 p.p18 {margin: 0.0px 0.0px 0.0px 0.0px; font: 9.0px Monaco; color: #961e1e}
28 p.p19 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 14.0px Helvetica}
29 p.p20 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #d40c0b}
30 p.p21 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco}
31 p.p22 {margin: 0.0px 0.0px 0.0px 57.0px; text-indent: -57.0px; font: 9.0px Monaco; color: #cd0b0b}
32 span.s1 {font: 18.0px Helvetica}
33 span.s2 {font: 9.0px Monaco}
34 span.s3 {color: #000000}
35 span.s4 {color: #2024c7}
36 span.s5 {color: #008417}
37 span.s6 {color: #737373}
38 span.s7 {color: #1d20b9}
39 span.s8 {color: #426f13}
40 span.Apple-tab-span {white-space:pre}
41 </style>
42 </head>
43 <body>
44 <p class="p1"><span class="s1"><b>PdefGui</b></span><span class="s2"> <span class="Apple-tab-span"> </span></span><b>a line of editing controls for a Pdef, and optionally its envir.</b></p>
45 <p class="p2"><br></p>
46 <p class="p1"><b>Inherits from: JITGui: TaskProxyGui </b>(like TdefGui)</p>
47 <p class="p2"><br></p>
48 <p class="p1">A gui showing the Pdef's name, playing state, source state, and envir state.<span class="Apple-converted-space"> </span></p>
49 <p class="p1">Optionally, its envir can also be edited.</p>
50 <p class="p3"><br></p>
51 <p class="p4"><span class="s3">See also<b> </b><a href="PdefAllGui.html"><b>PdefAllGui</b></a><b>, </b><a href="TdefGui.html"><b>TdefGui</b></a><b>, </b><a href="TdefAllGui.html"><b>TdefAllGui</b></a><b>.</b></span></p>
52 <p class="p3"><br></p>
53 <p class="p3"><br></p>
54 <p class="p1"><b>First example:</b></p>
55 <p class="p2"><br></p>
56 <p class="p5"><span class="s3">g = </span><span class="s4">PdefGui</span><span class="s3">();<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>// make a PdefGui<span class="Apple-converted-space"> </span></p>
57 <p class="p5"><span class="s3">g.object = </span><span class="s4">Pdef</span><span class="s3">(</span><span class="s5">\a</span><span class="s3">);<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// show when a Pdef is put in</p>
58 <p class="p5"><span class="s4">Pdef</span><span class="s3">(</span><span class="s5">\a</span><span class="s3">, Pbind(\note, 12)); <span class="Apple-tab-span"> </span></span>// show whether it has a source</p>
59 <p class="p5"><span class="s4">Pdef</span><span class="s3">(</span><span class="s5">\a</span><span class="s3">).play; <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>// show whether playing, stopped, or ended, and pausable</p>
60 <p class="p5"><span class="s4">Pdef</span><span class="s3">(</span><span class="s5">\a</span><span class="s3">).set(</span><span class="s5">\dur</span><span class="s3">, 0.25); <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// show whether the Pdef has an envir</p>
61 <p class="p6">g.close;</p>
62 <p class="p2"><br></p>
63 <p class="p5"><span class="s3">g = </span><span class="s4">PdefGui</span><span class="s3">(</span><span class="s4">Pdef</span><span class="s3">(</span><span class="s5">\a</span><span class="s3">), 3);<span class="Apple-tab-span"> </span></span>// with an envirgui for 3 items</p>
64 <p class="p7"><span class="s4">Pdef</span><span class="s3">(</span>\a<span class="s3">).set(</span>\lofreq<span class="s3">, [1, 10], </span>\str<span class="s3">, </span><span class="s6">"someString"</span><span class="s3">, </span>\oops<span class="s3">, </span>\oneSymbolTooMany<span class="s3">);</span></p>
65 <p class="p6"><span class="s4">Pdef</span>(<span class="s5">\a</span>).clear;</p>
66 <p class="p6"><span class="s4">Pdef</span>(<span class="s5">\a</span>).envir.clear;</p>
67 <p class="p6">g.close;</p>
68 <p class="p2"><br></p>
69 <p class="p5"><span class="s3">(<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>// put it in an existing window - margin is 0@0</p>
70 <p class="p6">w = <span class="s4">Window</span>("my win", Rect(200, 200, 300, 200)).front;<span class="Apple-converted-space"> </span></p>
71 <p class="p6">w.addFlowLayout;</p>
72 <p class="p6"><span class="s4">PdefGui</span>(<span class="s4">Pdef</span>(<span class="s5">\a</span>), 0, w);</p>
73 <p class="p6"><span class="s4">PdefGui</span>(<span class="s4">Pdef</span>(<span class="s5">\a</span>), 3, w);</p>
74 <p class="p6">)</p>
75 <p class="p3"><br></p>
76 <p class="p1"><b>Details on the GUI elements:</b></p>
77 <p class="p3"><br></p>
78 <p class="p1"><b>name button:<span class="Apple-converted-space"> </span></b></p>
79 <p class="p1"><span class="Apple-tab-span"> </span>when selected, typing the delete key will delete its Pdef.</p>
80 <p class="p3"><br></p>
81 <p class="p1"><b>play/stop button</b> :<span class="Apple-converted-space"> </span></p>
82 <p class="p1"><span class="Apple-tab-span"> </span>indicates whether the Pdef is playing:<span class="Apple-converted-space"> </span></p>
83 <p class="p1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>" &gt;"<span class="Apple-converted-space">  <span class="Apple-tab-span"> </span></span>if stopped,<span class="Apple-converted-space"> </span></p>
84 <p class="p1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>" _" <span class="Apple-tab-span"> </span>if playing and active,<span class="Apple-converted-space"> </span></p>
85 <p class="p1"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>" |" <span class="Apple-tab-span"> </span>if it is playing, but the stream has ended.<span class="Apple-converted-space"> </span></p>
86 <p class="p2"><span class="Apple-tab-span"> </span></p>
87 <p class="p1"><b>pause/resume button</b>:<span class="Apple-converted-space"> </span></p>
88 <p class="p1"><span class="Apple-tab-span"> </span>only visible if one can pause or resume the Pdef, i.e. while it is playing.</p>
89 <p class="p1"><span class="Apple-tab-span"> </span>"paus" is shown when you can pause it,</p>
90 <p class="p1"><span class="Apple-tab-span"> </span>"rsum" is shown when you can resume it.</p>
91 <p class="p3"><br></p>
92 <p class="p1"><b>src button</b>:<span class="Apple-converted-space"> </span></p>
93 <p class="p1"><span class="Apple-tab-span"> </span>opens a document to edit the source (function) of the Pdef.</p>
94 <p class="p1"><span class="Apple-tab-span"> </span>green if a source exists, white if the source is nil.</p>
95 <p class="p3"><br></p>
96 <p class="p1"><b>env button</b>:<span class="Apple-converted-space"> </span></p>
97 <p class="p1"><span class="Apple-tab-span"> </span>opens a document to edit the environment of the Pdef,<span class="Apple-converted-space"> </span></p>
98 <p class="p1"><span class="Apple-tab-span"> </span>which is where one can keep all variables the Pdef uses</p>
99 <p class="p1"><span class="Apple-tab-span"> </span>for easy access.</p>
100 <p class="p1"><span class="Apple-tab-span"> </span>green if the Pdef has an envir, white if the envir is nil.</p>
101 <p class="p2"><br></p>
102 <p class="p2"><br></p>
103 <p class="p8"><b>Creation Methods</b></p>
104 <p class="p9"><br></p>
105 <p class="p10"><b><span class="Apple-tab-span"> </span>*new (object, numItems, parent, bounds, extras, makeSkip)</b></p>
106 <p class="p11"><b><span class="Apple-tab-span"> </span></b></p>
107 <p class="p10"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Create a new JITGui that will be watching an object and display its state.</p>
108 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>object </b>- <span class="Apple-tab-span"> </span>the object to watch<span class="Apple-converted-space"> </span></p>
109 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>numItems </b>- the number of display items to use, e.g. how many fields for text,<span class="Apple-converted-space"> </span></p>
110 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>or how many EZSliders for single-number parameters.</p>
111 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>parent </b>- <span class="Apple-tab-span"> </span>a parent view on which to display. If nil, a new window is created;</p>
112 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>parent </b>can also be an existing window or a composite view.</p>
113 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>bounds </b>- <span class="Apple-tab-span"> </span>a desired size and position where to display a JITGui. can be nil,<span class="Apple-converted-space"> </span></p>
114 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>a point, or a rect. JITGuis know their minimum size (<b>minSize),<span class="Apple-converted-space"> </span></b></p>
115 <p class="p12"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>and if bounds is nil, minSize is used.</p>
116 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>if bounds is a point or rect, it will be set to at least minSize.</p>
117 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>With a rect one can also supply a position where to display.</p>
118 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>If a point,shown size is the maximum of bounds and minSize<span class="Apple-converted-space"> </span></p>
119 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>extras - <span class="Apple-tab-span"> </span></b>a list of additional information, e.g. flags about optional buttons.</p>
120 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>(this is used is some subclasses)</p>
121 <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></p>
122 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>makeSkip </b>- A flag whether to make a skipjack.</p>
123 <p class="p11"><br></p>
124 <p class="p14"><br></p>
125 <p class="p2"><br></p>
126 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>, Pbind(\freq, Prand((1..16) * 55, inf)));</p>
127 <p class="p15"><span class="s7">Pdef</span><span class="s3">(</span>\a).play;</p>
128 <p class="p6">t = <span class="s7">PdefGui</span>(<span class="s7">Pdef</span>(<span class="s8">\a</span>), 4);</p>
129 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>).set(<span class="s8">\dur</span>, 0.125, <span class="s8">\amp</span>, 0.05);</p>
130 <p class="p2"><br></p>
131 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>).stop;</p>
132 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>).play;</p>
133 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>).pause;</p>
134 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\a</span>).resume;</p>
135 <p class="p2"><br></p>
136 <p class="p6">t.object_(<span class="s4">nil</span>);</p>
137 <p class="p6">t.object_(<span class="s4">Pdef</span>(<span class="s5">\a</span>));</p>
138 <p class="p2"><br></p>
139 <p class="p6">(</p>
140 <p class="p16"><span class="s3">w = </span><span class="s4">Window</span><span class="s3">(</span>"put it in a selfmade window"<span class="s3">).front;</span></p>
141 <p class="p6">w.addFlowLayout;</p>
142 <p class="p6">w.view.decorator.shift(50, 50);</p>
143 <p class="p6"><span class="s4">PdefGui</span>(<span class="s4">Pdef</span>(<span class="s5">\a</span>), 12, w);</p>
144 <p class="p6">)</p>
145 <p class="p2"><br></p>
146 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\b</span>,<span class="Apple-converted-space">  </span>Pbind(\note, Pxrand((0..7), inf), \dur, 0.125));</p>
147 <p class="p6"><span class="s7">Pdef</span>(<span class="s8">\b</span>).play;</p>
148 <p class="p17">PdefGui<span class="s3">(</span>Pdef<span class="s3">(</span><span class="s8">\b</span><span class="s3">));</span></p>
149 <p class="p2"><br></p>
150 <p class="p18"><span class="s3"><span class="Apple-tab-span"> </span></span>// see all Pdefs:<span class="Apple-converted-space"> </span></p>
151 <p class="p17">PdefAllGui<span class="s3">(16);</span></p>
152 <p class="p2"><br></p>
153 <p class="p2"><br></p>
154 <p class="p19"><b>Instance Variables</b></p>
155 <p class="p11"><span class="Apple-tab-span"> </span></p>
156 <p class="p10"><b><span class="Apple-tab-span"> </span>object <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>a Pdef, or nil</p>
157 <p class="p11"><b><span class="Apple-tab-span"> </span></b></p>
158 <p class="p10"><b><span class="Apple-tab-span"> </span>numItems<span class="Apple-tab-span"> </span></b>the number of items in the envirGui<span class="Apple-converted-space"> </span></p>
159 <p class="p11"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b><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>
160 <p class="p10"><b><span class="Apple-tab-span"> </span>parent, <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>the parent view<span class="Apple-converted-space"> </span></p>
161 <p class="p11"><b><span class="Apple-tab-span"> </span></b></p>
162 <p class="p10"><b><span class="Apple-tab-span"> </span>bounds <span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>the bounds of the <b>zone</b></p>
163 <p class="p11"><br></p>
164 <p class="p10"><b><span class="Apple-tab-span"> </span>zone<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>the CompositeView within which the TdfGui is shown</p>
165 <p class="p11"><b><span class="Apple-tab-span"> </span></b><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>
166 <p class="p11"><span class="Apple-tab-span"> </span></p>
167 <p class="p10"><b><span class="Apple-tab-span"> </span>nameBut, playBut, pauseBut, srcBut, envBut<span class="Apple-tab-span"> </span></b>the buttons</p>
168 <p class="p11"><b><span class="Apple-tab-span"> </span></b><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><span class="Apple-tab-span"> </span></p>
169 <p class="p10"><b><span class="Apple-tab-span"> </span>envirGui<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>the gui for the Pdef's envir - nil if numItems is 0.</p>
170 <p class="p11"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span></p>
171 <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>
172 <p class="p19"><b>Instance Methods</b></p>
173 <p class="p11"><br></p>
174 <p class="p10"><b><span class="Apple-tab-span"> </span>object_ (obj)<span class="Apple-tab-span"> </span></b>put an object in the gui.<span class="Apple-converted-space"> </span><span class="s2"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span></p>
175 <p class="p13"><span class="Apple-tab-span"> </span></p>
176 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>// if the jitGui is in its own window, you can:</p>
177 <p class="p12"><b><span class="Apple-tab-span"> </span>moveTo (h, v)<span class="Apple-tab-span"> </span></b>move it to some specific location.</p>
178 <p class="p13"><br></p>
179 <p class="p10"><b><span class="Apple-tab-span"> </span>clear<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>set the PdefGui's object to nil</p>
180 <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></p>
181 <p class="p10"><b><span class="Apple-tab-span"> </span>close<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>and close its window.</p>
182 <p class="p14"><br></p>
183 <p class="p11"><span class="Apple-tab-span"> </span></p>
184 <p class="p10"><b>Internal methods:</b></p>
185 <p class="p11"><br></p>
186 <p class="p10"><b><span class="Apple-tab-span"> </span>srcString<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>a compileString that recreates the Pdef.<span class="Apple-converted-space"> </span></p>
187 <p class="p11"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
188 <p class="p20"><span class="s3"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// assume g from above is still there</p>
189 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.srcString;</p>
190 <p class="p14"><br></p>
191 <p class="p10"><b><span class="Apple-tab-span"> </span>editString (edKey)<span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>a compileString that recreates the Pdef's envir at edKey.<span class="Apple-converted-space"> </span></p>
192 <p class="p10"><b><span class="Apple-tab-span"> </span>editStrings (edKeys)<span class="Apple-tab-span"> </span></b>a compileString that recreates the Pdef's envir at edKeys.</p>
193 <p class="p11"><b><span class="Apple-tab-span"> </span></b></p>
194 <p class="p10"><b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></b>Short prose description of method.</p>
195 <p class="p12"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><b>edKey </b>- Explanation of edKey. Default value is nil. Other information.</p>
196 <p class="p11"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
197 <p class="p22"><span class="s3"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></span>// assume g from above is still there</p>
198 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.editString;</p>
199 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="s4">Pdef</span>(<span class="s5">\a</span>).set(<span class="s5">\foo</span>, <span class="s5">\bar</span>);</p>
200 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.editString(<span class="s5">\foo</span>);</p>
201 <p class="p14"><br></p>
202 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.editStrings;</p>
203 <p class="p14"><br></p>
204 <p class="p10"><b><span class="Apple-tab-span"> </span>getUsedKeys</b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>the keys in use in the envir</p>
205 <p class="p11"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
206 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.getUsedKeys;</p>
207 <p class="p14"><br></p>
208 <p class="p14"><br></p>
209 <p class="p10"><b><span class="Apple-tab-span"> </span>openDoc (strings, bounds)<span class="Apple-converted-space">  <span class="Apple-tab-span"> </span></span></b>open a document with some strings at some location</p>
210 <p class="p11"><b><span class="Apple-tab-span"> </span></b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span></p>
211 <p class="p21"><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>g.openDoc(g.editStrings);</p>
212 <p class="p14"><br></p>
213 <p class="p14"><br></p>
214 <p class="p10"><b><span class="Apple-tab-span"> </span>makeEnvirGui</b><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span><span class="Apple-tab-span"> </span>make an envirGui within zone - called internally.</p>
215 </body>
216 </html>