racket/teachpack/htdp/Docs/lkup-gui.thtml
2005-05-27 17:52:04 +00:00

26 lines
727 B
Plaintext

{ (define LIBNAME "Lkup GUI")
(include "head.tinc") }
<p>The teachpack <code>lkup-gui.ss</code> implements three functions:
<menu>
<li> <code>{(idx control)} : -> symbol</code> <br>
to read out the name that a user typed into the query field
<li> <code>{(idx view)} : (union string symbol) -> true</code> <br>
to display its argument in the message panel
<li> <code>modelT = (button% event% -> true)</code> <br>
<code>{(idx connect)} : modelT -> true</code> <br>
to connect a controller with the Check button displays frame
</menu>
<p>Example:
<pre>
(connect
(lambda (e b)
(view (control))))
</pre>
This example simply mirrors what the user types in to the message field.
{(include "foot.tinc")}