<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hilaire's code should also work on TextEntryMorph. I'd stick to
TextEntryMorph if you want a single line.<br>
<br>
HTH,<br>
<br>
On 8/22/2024 10:34 PM, Mark Volkmann via Cuis-dev wrote:
<blockquote
cite="mid:CAFfRWnX2413YrEH8rcE7kVorrS5t6uYEHZ6saA9bzhtk8inFxw@mail.gmail.com"
type="cite">
<div dir="ltr">The issue I've run into with TextModelMorph is that
it seems to be for multi-line input.
<div>Is there a way to configure it to only allow a single line
of input like TextEntryMorph does?</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Aug 22, 2024 at
3:17 AM Hilaire Fernandes via Cuis-dev <<a
moz-do-not-send="true" href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>>
wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin: 0px 0px 0px
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div bgcolor="#FFFFFF">
<p><font size="4">What about listening to key stroke event
on TextModelMorph. TextEntryMorph is a bit limited in
its features. Code example from DrGeo:<br>
</font></p>
<p><font size="4"> tMorph scroller <br>
setProperty: #keyStroke: <br>
toValue: [:event | <br>
tMorph scroller acceptContents.<br>
self changed: #isReadyToApply].<br>
</font></p>
<div>Le 22/08/2024 à 03:08, Mark Volkmann via Cuis-dev a
écrit :<br>
</div>
<blockquote type="cite">
<div>I defined the class TextEntry2Morph which is a
subclass of TextEntryMorph because I wanted to register
a block to be evaluated every time it has focus and the
user presses the escape key. It only adds the instance
variable <font face="monospace">escapeAction</font> and
these instance methods:<br>
</div>
</blockquote>
<pre cols="72">--
GNU Dr. Geo
<a moz-do-not-send="true" href="http://gnu.org/s/dr-geo/" target="_blank">http://gnu.org/s/dr-geo/</a>
<a moz-do-not-send="true" href="http://gnu-drgeo.blogspot.com/" target="_blank">http://gnu-drgeo.blogspot.com/</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a moz-do-not-send="true" href="mailto:Cuis-dev@lists.cuis.st"
target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a moz-do-not-send="true"
href="https://lists.cuis.st/mailman/listinfo/cuis-dev"
rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote>
</div>
<br clear="all">
<div><br>
</div>
<span class="gmail_signature_prefix">-- </span><br>
<div dir="ltr" class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">
<div>
<div dir="ltr">
<div dir="ltr">
<div><font face="arial, helvetica, sans-serif">R.
Mark Volkmann</font></div>
<div><span style="font-size: 12.8px;"><font
face="arial, helvetica, sans-serif">Object
Computing, Inc.</font></span></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Juan Vuletich
cuis.st
github.com/jvuletich
researchgate.net/profile/Juan-Vuletich
independent.academia.edu/JuanVuletich
patents.justia.com/inventor/juan-manuel-vuletich
linkedin.com/in/juan-vuletich-75611b3
twitter.com/JuanVuletich</pre>
</body>
</html>