<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Handling multiple window]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=723</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=723&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Handling multiple window.]]></description>
		<lastBuildDate>Fri, 27 Sep 2019 16:39:37 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Handling multiple window]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3344#p3344</link>
			<description><![CDATA[<p>Thank you ! I&#039;ll work with that <img src="https://forums.approximatrix.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Fri, 27 Sep 2019 16:39:37 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3344#p3344</guid>
		</item>
		<item>
			<title><![CDATA[Re: Handling multiple window]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3343#p3343</link>
			<description><![CDATA[<p>You can reliably count on <em>closeflag</em> to end the program if set to <em>.TRUE.</em>.&nbsp; So in your case, I would rewrite the program as:</p><div class="codebox"><pre><code>CALL initsomestuff()
CALL initsomeotherstuff()
DO WHILE(.TRUE.)
    CALL loop()
    CALL setcurrentwindow(main_screen)
END DO
CALL closewindow(main_screen)
END PROGRAM</code></pre></div><p>The above assumes that, after closing a secondary window, you always want <em>main_screen</em> to be the current window.</p><p>What AppGraphics really should have is the option for a callback when a window is closed so that your code can handle anything it might need to do like set a different window as current or possibly end the program more gracefully than what <em>closeflag</em> allows.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 26 Sep 2019 17:25:18 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3343#p3343</guid>
		</item>
		<item>
			<title><![CDATA[Re: Handling multiple window]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3342#p3342</link>
			<description><![CDATA[<p>Do you have any workaround idea for this ? <br />and i don&#039;t understand the purpose of the closeflag if it&#039;s not for this exact problem <img src="https://forums.approximatrix.com/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>thank you <img src="https://forums.approximatrix.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Thu, 26 Sep 2019 12:58:10 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3342#p3342</guid>
		</item>
		<item>
			<title><![CDATA[Re: Handling multiple window]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3341#p3341</link>
			<description><![CDATA[<p>When any window is closed in AppGraphics, it also triggers a call to <em>stopidle</em>.&nbsp; I don&#039;t believe the documentation explicitly outlines this, but it is indeed true.&nbsp; In your program, when you close either window, the program will exit the <em>loop</em> call immediately.</p><p>I do see a problem with this configuration, though.&nbsp; AppGraphics maybe does require a more explicit way of determining the event that caused <em>stopidle</em> to be called.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 26 Sep 2019 11:05:30 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3341#p3341</guid>
		</item>
		<item>
			<title><![CDATA[Handling multiple window]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=3340#p3340</link>
			<description><![CDATA[<p>Friendly greetings !</p><p>Using appgraphic, on windows 10 :<br />I have 2 windows (&quot;main_screen&quot; and &quot;printer_screen&quot;) created with initwindow on startup. One with closeflag TRUE and the other one FALSE.<br />When i close any of them, the whole program close.</p><p>Is this supposed to happens ?</p><p>My main is really simple : </p><p>CALL initsomestuff()<br />CALL initsomeotherstuff()<br />CALL loop()<br />CALL closewindow(main_screen)<br />END PROGRAM</p><p>Thank you</p>]]></description>
			<author><![CDATA[null@example.com (ker2x)]]></author>
			<pubDate>Thu, 26 Sep 2019 07:06:00 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=3340#p3340</guid>
		</item>
	</channel>
</rss>
