This file is indexed.

/usr/share/doc/racket/teachpack/gui.html is in racket-doc 6.1-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/><title>1.14&nbsp;Simple Graphical User Interfaces: "gui.rkt"</title><link rel="stylesheet" type="text/css" href="../scribble.css" title="default"/><link rel="stylesheet" type="text/css" href="../racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-style.css" title="default"/><link rel="stylesheet" type="text/css" href="../manual-racket.css" title="default"/><link rel="stylesheet" type="text/css" href="../doc-site.css" title="default"/><script type="text/javascript" src="../scribble-common.js"></script><script type="text/javascript" src="../manual-racket.js"></script><script type="text/javascript" src="../doc-site.js"></script><script type="text/javascript" src="../local-redirect/local-redirect.js"></script><script type="text/javascript" src="../local-redirect/local-user-redirect.js"></script><!--[if IE 6]><style type="text/css">.SIEHidden { overflow: hidden; }</style><![endif]--></head><body id="doc-racket-lang-org"><div class="tocset"><div class="tocview"><div class="tocviewlist tocviewlisttopspace"><div class="tocviewtitle"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_0&quot;);">&#9658;</a></td><td></td><td><a href="index.html" class="tocviewlink" data-pltdoc="x"><span style="font-style: italic">How to Design Programs</span> Teachpacks</a></td></tr></table></div><div class="tocviewsublisttop" style="display: none;" id="tocview_0"><table cellspacing="0" cellpadding="0"><tr><td align="right">1&nbsp;</td><td><a href="htdp.html" class="tocviewselflink" data-pltdoc="x">Ht<span class="mywbr"> &nbsp;</span>DP Teachpacks</a></td></tr><tr><td align="right">2&nbsp;</td><td><a href="2htdp2htdp.html" class="tocviewlink" data-pltdoc="x">Ht<span class="mywbr"> &nbsp;</span>DP/<span class="mywbr"> &nbsp;</span>2e Teachpacks</a></td></tr></table></div></div><div class="tocviewlist"><table cellspacing="0" cellpadding="0"><tr><td style="width: 1em;"><a href="javascript:void(0);" title="Expand/Collapse" class="tocviewtoggle" onclick="TocviewToggle(this,&quot;tocview_1&quot;);">&#9660;</a></td><td>1&nbsp;</td><td><a href="htdp.html" class="tocviewlink" data-pltdoc="x">Ht<span class="mywbr"> &nbsp;</span>DP Teachpacks</a></td></tr></table><div class="tocviewsublistbottom" style="display: block;" id="tocview_1"><table cellspacing="0" cellpadding="0"><tr><td align="right">1.1&nbsp;</td><td><a href="image.html" class="tocviewlink" data-pltdoc="x">Manipulating Images:<span class="mywbr"> &nbsp;</span> <span class="stt">"image.rkt"</span><a name="(idx._(gentag._0._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.2&nbsp;</td><td><a href="world.html" class="tocviewlink" data-pltdoc="x">Simulations and Animations:<span class="mywbr"> &nbsp;</span> <span class="stt">"world.rkt"</span><a name="(idx._(gentag._1._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.3&nbsp;</td><td><a href="convert.html" class="tocviewlink" data-pltdoc="x">Converting Temperatures:<span class="mywbr"> &nbsp;</span> <span class="stt">"convert.rkt"</span><a name="(idx._(gentag._2._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.4&nbsp;</td><td><a href="guess.html" class="tocviewlink" data-pltdoc="x">Guessing Numbers:<span class="mywbr"> &nbsp;</span> <span class="stt">"guess.rkt"</span><a name="(idx._(gentag._3._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.5&nbsp;</td><td><a href="master.html" class="tocviewlink" data-pltdoc="x">Master<span class="mywbr"> &nbsp;</span>Minding:<span class="mywbr"> &nbsp;</span> <span class="stt">"master.rkt"</span><a name="(idx._(gentag._4._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.6&nbsp;</td><td><a href="master-play.html" class="tocviewlink" data-pltdoc="x">Playing Master<span class="mywbr"> &nbsp;</span>Mind:<span class="mywbr"> &nbsp;</span> <span class="stt">"master-<wbr></wbr>play.rkt"</span><a name="(idx._(gentag._5._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.7&nbsp;</td><td><a href="draw.html" class="tocviewlink" data-pltdoc="x">Simple Drawing:<span class="mywbr"> &nbsp;</span> <span class="stt">"draw.rkt"</span><a name="(idx._(gentag._6._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.8&nbsp;</td><td><a href="hangman.html" class="tocviewlink" data-pltdoc="x">Hangman:<span class="mywbr"> &nbsp;</span> <span class="stt">"hangman.rkt"</span><a name="(idx._(gentag._7._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.9&nbsp;</td><td><a href="hangman-play.html" class="tocviewlink" data-pltdoc="x">Playing Hangman:<span class="mywbr"> &nbsp;</span> <span class="stt">"hangman-<wbr></wbr>play.rkt"</span><a name="(idx._(gentag._8._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.10&nbsp;</td><td><a href="arrow.html" class="tocviewlink" data-pltdoc="x">Managing Control Arrows:<span class="mywbr"> &nbsp;</span> <span class="stt">"arrow.rkt"</span><a name="(idx._(gentag._9._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.11&nbsp;</td><td><a href="docs.html" class="tocviewlink" data-pltdoc="x">Manipulating Simple HTML Documents:<span class="mywbr"> &nbsp;</span> <span class="stt">"docs.rkt"</span><a name="(idx._(gentag._10._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.12&nbsp;</td><td><a href="dir.html" class="tocviewlink" data-pltdoc="x">Working with Files and Directories:<span class="mywbr"> &nbsp;</span> <span class="stt">"dir.rkt"</span><a name="(idx._(gentag._11._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.13&nbsp;</td><td><a href="graphing.html" class="tocviewlink" data-pltdoc="x">Graphing Functions:<span class="mywbr"> &nbsp;</span> <span class="stt">"graphing.rkt"</span><a name="(idx._(gentag._12._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.14&nbsp;</td><td><a href="" class="tocviewselflink" data-pltdoc="x">Simple Graphical User Interfaces:<span class="mywbr"> &nbsp;</span> <span class="stt">"gui.rkt"</span><a name="(idx._(gentag._13._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.15&nbsp;</td><td><a href="arrow-gui.html" class="tocviewlink" data-pltdoc="x">An Arrow GUI:<span class="mywbr"> &nbsp;</span> <span class="stt">"arrow-<wbr></wbr>gui.rkt"</span><a name="(idx._(gentag._14._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.16&nbsp;</td><td><a href="elevator.html" class="tocviewlink" data-pltdoc="x">Controlling an Elevator:<span class="mywbr"> &nbsp;</span> <span class="stt">"elevator.rkt"</span><a name="(idx._(gentag._15._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.17&nbsp;</td><td><a href="lkup-gui.html" class="tocviewlink" data-pltdoc="x">Lookup GUI:<span class="mywbr"> &nbsp;</span> <span class="stt">"lkup-<wbr></wbr>gui.rkt"</span><a name="(idx._(gentag._16._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.18&nbsp;</td><td><a href="guess-gui.html" class="tocviewlink" data-pltdoc="x">Guess GUI:<span class="mywbr"> &nbsp;</span> <span class="stt">"guess-<wbr></wbr>gui.rkt"</span><a name="(idx._(gentag._17._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.19&nbsp;</td><td><a href="show-queen.html" class="tocviewlink" data-pltdoc="x">Queens:<span class="mywbr"> &nbsp;</span> <span class="stt">"show-<wbr></wbr>queen.rkt"</span><a name="(idx._(gentag._18._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr><tr><td align="right">1.20&nbsp;</td><td><a href="matrix.html" class="tocviewlink" data-pltdoc="x">Matrix Functions:<span class="mywbr"> &nbsp;</span> <span class="stt">"matrix.rkt"</span><a name="(idx._(gentag._19._(lib._teachpack/teachpack..scrbl)))"></a></a></td></tr></table></div></div></div><div class="tocsub"><div class="tocsubtitle">On this page:</div><table class="tocsublist" cellspacing="0"><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._create-window%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">create-<wbr></wbr>window</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._window~3f%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">window?</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._show-window%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">show-<wbr></wbr>window</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._hide-window%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">hide-<wbr></wbr>window</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-button%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>button</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-message%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>message</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._draw-message%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">draw-<wbr></wbr>message</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-text%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>text</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._text-contents%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">text-<wbr></wbr>contents</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-choice%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">make-<wbr></wbr>choice</span></span></a></td></tr><tr><td><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._choice-index%29%29" class="tocsublink" data-pltdoc="x"><span class="RktSym"><span class="RktValLink">choice-<wbr></wbr>index</span></span></a></td></tr></table></div></div><div class="maincolumn"><div class="main"><div class="navsettop"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="graphing.html" title="backward to &quot;1.13 Graphing Functions: &quot;graphing.rkt&quot;&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="htdp.html" title="up to &quot;1 HtDP Teachpacks&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="arrow-gui.html" title="forward to &quot;1.15 An Arrow GUI: &quot;arrow-gui.rkt&quot;&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div><h4 x-source-module="(lib &quot;teachpack/teachpack.scrbl&quot;)" x-part-tag="&quot;gui&quot;">1.14<tt>&nbsp;</tt><a name="(part._gui)"></a><a name="(mod-path._htdp/gui)"></a>Simple Graphical User Interfaces: <span class="stt">"gui.rkt"</span><a name="(idx._(gentag._13._(lib._teachpack/teachpack..scrbl)))"></a></h4><p><table cellspacing="0" cellpadding="0" class="defmodule"><tr><td align="left"><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=htdp-langs&amp;rel=beginner.html%23%2528form._%2528%2528lib._lang%252Fhtdp-beginner..rkt%2529._require%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">require</a></span><span class="stt"> </span><a href="" class="RktModLink" data-pltdoc="x"><span class="RktSym">htdp/gui</span></a><span class="RktPn">)</span></td><td align="right"><span class="RpackageSpec"><span class="Smaller">&nbsp;package:</span> <span class="stt">htdp-lib</span></span></td></tr></table></p><p>The teachpack provides functions for creating and manipulating graphical
user interfaces. We recommend using <a href="2htdpuniverse.html" class="RktModLink" data-pltdoc="x"><span class="RktSym">2htdp/universe</span></a> instead.</p><p><a name="(tech._window)"></a><span style="font-style: italic">Window</span> A <a href="#%28tech._window%29" class="techoutside" data-pltdoc="x"><span class="techinside">Window</span></a> is a data representation of a visible
window on your computer screen.</p><p><a name="(tech._gui._item)"></a><span style="font-style: italic">GUI-ITEM</span> A <a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-Item</span></a> is a data representation of an active
component of a window on your computer screen.</p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._create-window))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._create-window%29%29" class="RktValDef RktValLink" data-pltdoc="x">create-window</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">g</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym">Window</span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">g</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Creates a window from the &ldquo;matrix&rdquo; of gui items <span class="RktVar">g</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._window~3f))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._window~3f%29%29" class="RktValDef RktValLink" data-pltdoc="x">window?</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">x</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._boolean%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">boolean?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">x</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._any%252Fc%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">any/c</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Is the given value a window?</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._show-window))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._show-window%29%29" class="RktValDef RktValLink" data-pltdoc="x">show-window</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">w</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528lib._racket%252Fbool..rkt%2529._true%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">true</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">Window</span></td></tr></table></blockquote></div><div class="SIntrapara">Shows <span class="RktVar">w</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._hide-window))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._hide-window%29%29" class="RktValDef RktValLink" data-pltdoc="x">hide-window</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">w</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528lib._racket%252Fbool..rkt%2529._true%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">true</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">w</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">window</span></td></tr></table></blockquote></div><div class="SIntrapara">Hides <span class="RktVar">w</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._make-button))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-button%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-button</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">label</span><span class="hspace">&nbsp;</span><span class="RktVar">callback</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">label</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym">string&gt;</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">callback</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=function-contracts.html%23%2528form._%2528%2528lib._racket%252Fcontract%252Fbase..rkt%2529._-%7E3e%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x"><span class="nobreak">-&gt;</span></a></span><span class="hspace">&nbsp;</span><span class="RktSym">event%</span><span class="hspace">&nbsp;&nbsp;</span><span class="RktSym">boolean</span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Creates a
button with <span class="RktVar">label</span> and <span class="RktVar">callback</span> function. The latter
receives an argument that it may safely ignore.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._make-message))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-message%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-message</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">msg</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">msg</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Creates a message item from <span class="RktVar">msg</span>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._draw-message))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._draw-message%29%29" class="RktValDef RktValLink" data-pltdoc="x">draw-message</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">g</span><span class="hspace">&nbsp;</span><span class="RktVar">m</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=booleans.html%23%2528def._%2528%2528lib._racket%252Fbool..rkt%2529._true%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">true</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">g</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">m</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Displays <span class="RktVar">m</span>
in message item <span class="RktVar">g</span> and erases the current message.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._make-text))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-text%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-text</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">txt</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">txt</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span></td></tr></table></blockquote></div><div class="SIntrapara">Creates an text editor (with
label <span class="RktVar">txt</span>) that allows users to enter text.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._text-contents))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._text-contents%29%29" class="RktValDef RktValLink" data-pltdoc="x">text-contents</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">g</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">g</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></td></tr></table></blockquote></div><div class="SIntrapara">Determines the current contents of a text <a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a>.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._make-choice))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-choice%29%29" class="RktValDef RktValLink" data-pltdoc="x">make-choice</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">choices</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">choices</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._listof%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">listof</a></span><span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string%7E3f%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string?</a></span><span class="RktPn">)</span></td></tr></table></blockquote></div><div class="SIntrapara">Creates a choice menu from <span class="RktVar">choices</span> that permits users to choose
from some alternatives.</div></p><p><div class="SIntrapara"><blockquote class="SVInsetFlow"><table cellspacing="0" cellpadding="0" class="boxed RBoxed"><tr><td><blockquote class="SubFlow"><div class="RBackgroundLabel SIEHidden"><div class="RBackgroundLabelInner"><p>procedure</p></div></div><p class="RForeground"><span class="RktPn">(</span><a name="(def._((lib._htdp/gui..rkt)._choice-index))"></a><span title="Provided from: htdp/gui | Package: htdp-lib"><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._choice-index%29%29" class="RktValDef RktValLink" data-pltdoc="x">choice-index</a></span></span><span class="hspace">&nbsp;</span><span class="RktVar">g</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span>&rarr;<span class="hspace">&nbsp;</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=data-structure-contracts.html%23%2528def._%2528%2528lib._racket%252Fcontract%252Fprivate%252Fmisc..rkt%2529._natural-number%252Fc%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">natural-number/c</a></span></p></blockquote></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktVar">g</span><span class="hspace">&nbsp;</span>:<span class="hspace">&nbsp;</span><a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a></td></tr></table></blockquote></div><div class="SIntrapara">Determines the
choice that is currently selected in a choice <a href="#%28tech._gui._item%29" class="techoutside" data-pltdoc="x"><span class="techinside">GUI-ITEM</span></a>; the result
is the 0-based index in the choice menu</div></p><p><div class="SIntrapara">Example 1:
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%7E3e%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">&gt;</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace">&nbsp;</span><span class="RktSym">w</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._create-window%29%29" class="RktValLink" data-pltdoc="x">create-window</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-button%29%29" class="RktValLink" data-pltdoc="x">make-button</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"QUIT"</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._lambda%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">lambda</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._hide-window%29%29" class="RktValLink" data-pltdoc="x">hide-window</a></span><span class="hspace">&nbsp;</span><span class="RktSym">w</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">A button appears on the screen.</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">Click on the button and it will disappear.</span></td></tr><tr><td><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=generic-numbers.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._%7E3e%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">&gt;</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._show-window%29%29" class="RktValLink" data-pltdoc="x">show-window</a></span><span class="hspace">&nbsp;</span><span class="RktSym">w</span><span class="RktPn">)</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">The window disappears. </span></td></tr></table></blockquote></div></p><p><div class="SIntrapara">Example 2:
</div><div class="SIntrapara"><blockquote class="SCodeFlow"><table cellspacing="0" cellpadding="0" class="RktBlk"><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">text1 : GUI-ITEM</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace">&nbsp;</span><span class="RktSym">text1</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-text%29%29" class="RktValLink" data-pltdoc="x">make-text</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"Please enter your name"</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">msg1 : GUI-ITEM</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace">&nbsp;</span><span class="RktSym">msg1</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-message%29%29" class="RktValLink" data-pltdoc="x">make-message</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string-append%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string-append</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"Hello, World"</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._make-string%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">make-string</a></span><span class="hspace">&nbsp;</span><span class="RktVal">33</span><span class="hspace">&nbsp;</span><span class="RktVal">#\space</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">Event -&gt; true</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">draws the current contents of text1 into msg1, prepended with "Hello, "</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">respond</span><span class="hspace">&nbsp;</span><span class="RktSym">e</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._draw-message%29%29" class="RktValLink" data-pltdoc="x">draw-message</a></span><span class="hspace">&nbsp;</span><span class="RktSym">msg1</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=strings.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._string-append%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">string-append</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"Hello, "</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._text-contents%29%29" class="RktValLink" data-pltdoc="x">text-contents</a></span><span class="hspace">&nbsp;</span><span class="RktSym">text1</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">set up window with three "lines":</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="hspace">&nbsp;&nbsp;&nbsp;</span><span class="RktCmt">a text field, a message, and two buttons</span></td></tr><tr><td><span class="RktCmt">;</span><span class="RktCmt">&nbsp;</span><span class="RktCmt">fill in text and click OKAY</span></td></tr><tr><td><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=define.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._define%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">define</a></span><span class="hspace">&nbsp;</span><span class="RktSym">w</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._create-window%29%29" class="RktValLink" data-pltdoc="x">create-window</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace">&nbsp;</span><span class="RktSym">text1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace">&nbsp;</span><span class="RktSym">msg1</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=pairs.html%23%2528def._%2528%2528quote._%7E23%7E25kernel%2529._list%2529%2529&amp;version=6.1" class="RktValLink Sq" data-pltdoc="x">list</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-button%29%29" class="RktValLink" data-pltdoc="x">make-button</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"OKAY"</span><span class="hspace">&nbsp;</span><span class="RktSym">respond</span><span class="RktPn">)</span></td></tr><tr><td><span class="hspace">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._make-button%29%29" class="RktValLink" data-pltdoc="x">make-button</a></span><span class="hspace">&nbsp;</span><span class="RktVal">"QUIT"</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="http://download.racket-lang.org/docs/6.1/html/local-redirect/index.html?doc=reference&amp;rel=lambda.html%23%2528form._%2528%2528lib._racket%252Fprivate%252Fbase..rkt%2529._lambda%2529%2529&amp;version=6.1" class="RktStxLink Sq" data-pltdoc="x">lambda</a></span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym">e</span><span class="RktPn">)</span><span class="hspace">&nbsp;</span><span class="RktPn">(</span><span class="RktSym"><a href="#%28def._%28%28lib._htdp%2Fgui..rkt%29._hide-window%29%29" class="RktValLink" data-pltdoc="x">hide-window</a></span><span class="hspace">&nbsp;</span><span class="RktSym">w</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span><span class="RktPn">)</span></td></tr></table></blockquote></div></p><div class="navsetbottom"><span class="navleft"><form class="searchform"><input class="searchbox" style="color: #888;" type="text" value="...search manuals..." title="Enter a search string to search the manuals" onkeypress="return DoSearchKey(event, this, &quot;6.1&quot;, &quot;../&quot;);" onfocus="this.style.color=&quot;black&quot;; this.style.textAlign=&quot;left&quot;; if (this.value == &quot;...search manuals...&quot;) this.value=&quot;&quot;;" onblur="if (this.value.match(/^ *$/)) { this.style.color=&quot;#888&quot;; this.style.textAlign=&quot;center&quot;; this.value=&quot;...search manuals...&quot;; }"/></form>&nbsp;&nbsp;<a href="../index.html" title="up to the documentation top" data-pltdoc="x" onclick="return GotoPLTRoot(&quot;6.1&quot;);">top</a></span><span class="navright">&nbsp;&nbsp;<a href="graphing.html" title="backward to &quot;1.13 Graphing Functions: &quot;graphing.rkt&quot;&quot;" data-pltdoc="x">&larr; prev</a>&nbsp;&nbsp;<a href="htdp.html" title="up to &quot;1 HtDP Teachpacks&quot;" data-pltdoc="x">up</a>&nbsp;&nbsp;<a href="arrow-gui.html" title="forward to &quot;1.15 An Arrow GUI: &quot;arrow-gui.rkt&quot;&quot;" data-pltdoc="x">next &rarr;</a></span>&nbsp;</div></div></div><div id="contextindicator">&nbsp;</div></body></html>