<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — settextboxcontents/gettextboxcontents sequence]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=848&amp;type=atom" />
	<updated>2022-03-08T17:19:34Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=848</id>
		<entry>
			<title type="html"><![CDATA[Re: settextboxcontents/gettextboxcontents sequence]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3896#p3896" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2022-03-08T17:19:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3896#p3896</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[settextboxcontents/gettextboxcontents sequence]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=3895#p3895" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[tun_day]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3696</uri>
			</author>
			<updated>2022-03-08T04:34:53Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=3895#p3895</id>
		</entry>
</feed>
