<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — settextboxcontents/gettextboxcontents sequence]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=848</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=848&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in settextboxcontents/gettextboxcontents sequence.]]></description>
		<lastBuildDate>Tue, 08 Mar 2022 17:19:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: settextboxcontents/gettextboxcontents sequence]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3896#p3896</link>
			<description><![CDATA[<p>If you&#039;re using the code above as-is, the program just executes straight through immediately.&nbsp; There is no &quot;wait&quot; state in the code.</p><p>You&#039;d actually want something like:</p><div class="codebox"><pre><code>       integer i1, ii1
       character*5 sa_text
       common /texts/ sa_text
       character*20 buffer
       common /buffer/ buffer

       sa_text = &#039;0&#039;
       call settextboxcontents (i1, sa_text)
       call settextboxentercallback (i1, enter_pressed)
       call loop()
       ii1 = gettextboxcontents (i1, buffer)
       read (buffer, *) start_angle</code></pre></div><p>and add a subroutine <em>enter_pressed</em>:</p><div class="codebox"><pre><code>       subroutine enter_pressed
       use appgraphics, only: stopidle
       implicit none

           call stopidle()

       end subroutine enter_pressed</code></pre></div><p> that will cause the main program to break out of the call to <em>loop</em> when the user presses enter in a text box.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Tue, 08 Mar 2022 17:19:34 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3896#p3896</guid>
		</item>
		<item>
			<title><![CDATA[settextboxcontents/gettextboxcontents sequence]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3895#p3895</link>
			<description><![CDATA[<p>Why is the following not getting me user text input?</p><p>&nbsp; &nbsp; &nbsp; &nbsp;integer i1, ii1<br />&nbsp; &nbsp; &nbsp; &nbsp;character*5 sa_text<br />&nbsp; &nbsp; &nbsp; &nbsp;common /texts/ sa_text<br />&nbsp; &nbsp; &nbsp; &nbsp;character*20 buffer<br />&nbsp; &nbsp; &nbsp; &nbsp;common /buffer/ buffer</p><p>&nbsp; &nbsp; &nbsp; &nbsp;sa_text = &#039;0&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp;call settextboxcontents (i1, sa_text)<br />&nbsp; &nbsp; &nbsp; &nbsp;call settextboxentercallback (i1, get_buffer)<br />&nbsp; &nbsp; &nbsp; &nbsp;ii1 = gettextboxcontents (i1, buffer)<br />&nbsp; &nbsp; &nbsp; &nbsp;read (buffer, *) start_angle</p><p>The buffer value does not change no matter what the user enters. What am I doing wrong?</p>]]></description>
			<author><![CDATA[null@example.com (tun_day)]]></author>
			<pubDate>Tue, 08 Mar 2022 04:34:53 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3895#p3895</guid>
		</item>
	</channel>
</rss>
