<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — SF-Linux GUI, to run in a Window with no console appearing]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=548</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=548&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in SF-Linux GUI, to run in a Window with no console appearing.]]></description>
		<lastBuildDate>Wed, 13 Apr 2016 00:41:35 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: SF-Linux GUI, to run in a Window with no console appearing]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2467#p2467</link>
			<description><![CDATA[<p>John,</p><p>The problem of opening a console (vs. not) on Linux really isn&#039;t an issue.&nbsp; On Windows, there are, and I&#039;m generalizing quite a bit, two types of executables - console and GUI.&nbsp; A GUI executable simply does not request handles to standard input, output, and error &quot;handles&quot; when starting up.&nbsp; Normally, any program will in fact just start and assume it has access to standard i/o, causing windows to allocate a new console for the process.&nbsp; By specifying the &quot;-mwindows&quot; flag in our compiler, we never request access to those handles, in a manner of speaking.&nbsp; There are obviously technicalities and I&#039;ve simplified the problem considerably, but one should get the idea.</p><p>On Linux, <em>every</em> program has access to a standard input and output.&nbsp; The difference is that, on Linux, you generally don&#039;t see them if launched from a GUI element.&nbsp; For an example, open a terminal and launch a program manually, such as <em>simplyfortran</em>.&nbsp; Generally you won&#039;t see many messages if you&#039;re on Debian, but you might see a bunch of GTK warnings go by on Ubuntu.&nbsp; Simply Fortran itself actually prints out a message when closing (&quot;Shutdown complete&quot;) if launched from a terminal&nbsp; When it runs from a menu, the Linux desktop doesn&#039;t necessarily open a console to display the program&#039;s standard output and error streams.</p><p>Simply Fortran for GNU/Linux always opens a console for every program it launches.&nbsp; If we did provide the option to run as a GUI program, it would be somewhat misleading since it isn&#039;t actually changing anything in your executable; rather, it would just not show the console.&nbsp; If you were to launch your executable from your prefered desktop, possibly by double-clicking in a file manager, you shouldn&#039;t see a console open at all.&nbsp; I guess I do see the value in providing the option, but it isn&#039;t the same as what occurs in Windows.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Wed, 13 Apr 2016 00:41:35 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2467#p2467</guid>
		</item>
		<item>
			<title><![CDATA[SF-Linux GUI, to run in a Window with no console appearing]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=2466#p2466</link>
			<description><![CDATA[<p>I have looked at building a GUI usingGlade and Gtk but I&#039;m not keen on that because I want to be able to code all my&nbsp; GUI and other graphics into the object code, and I&#039;m unkeen on the idea of my projects always having to include a separate Glade output file to sit alongside the program executable. </p><p>In case you come up with any ideas that you could use to post APpgraphics to Linux, Jeff, please mention this, but I realise that this is is very unlikely to be&nbsp; on the cards for SF Linux, and I am assuming it will not be.&nbsp; I must therefore revert to DISLIN, with which I know from experienece I can build a good GUI and which has versions that can be used with all Linux distros - including the RaspPi.&nbsp; </p><p>I&#039;ve a long way to go before I get there but I am therefore planning to install DISLIN for Linux, with which to create GUIs with SF-Linux.</p><p>A question for later, therefore, is this:&nbsp; In the Windows version, there is a option to build a SF project executable that will run in its own Window, without opening a console.&nbsp; Can this be done in the Linux version as well?<br />--- <br />John</p>]]></description>
			<author><![CDATA[null@example.com (JohnWasilewski)]]></author>
			<pubDate>Mon, 11 Apr 2016 21:55:59 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=2466#p2466</guid>
		</item>
	</channel>
</rss>
