<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Windows apps]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=745&amp;type=atom" />
	<updated>2020-05-08T10:21:07Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=745</id>
		<entry>
			<title type="html"><![CDATA[Re: Windows apps]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3482#p3482" />
			<content type="html"><![CDATA[<p>SOME ROUGH IDEAS</p><p>Fortran programs were once structured in a linear way.&nbsp; </p><p> - Open and read-in the data input file<br />&nbsp; &nbsp;OR<br />&nbsp; &nbsp;Send prompts to the screen and read all keyboard input</p><p> - Process the data</p><p> - Send the results to <br />&nbsp; &nbsp;the screen, or <br />&nbsp; &nbsp;a printer, or<br />&nbsp; &nbsp;an output file<br />&nbsp; <br />To create a Windows app, structure your program differently:</p><p>Design on paper your proposed GUI, with menus and/or buttons<br />to make it do stuff.</p><p>Write a program structure that just runs the GUI.<br />Write your GUI source code using SF Appgraphics or DISLIN (etc)<br />(I suggest Appgraphics but DISLIN is also excellent)</p><p>Some of the GUI menus/buttons will call routines for opening input data files, or displaying data entry gadgets on screen, such as drop-downs, input-text-box fields, data entry table tables etc..&nbsp; Write the Appgraphics calls to generate these and make them do as required.&nbsp; Some of the GUI menus/buttons will need to call your data processing code.</p><p>Write the main processing code.</p><p>Write the results-output code.&nbsp; You might want this to send results or output to<br /> - a gadget in your program window, or<br /> - another window, or<br /> - an output file that you have opened from the GUI, or<br /> - variables/arrays in memory, for the user to interrogate using the GUI.<br />---<br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2020-05-08T10:21:07Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3482#p3482</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows apps]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3475#p3475" />
			<content type="html"><![CDATA[<p>I wanted to quickly mention, as part of this thread, that we&#039;ve actually published a small utility for connecting to Virtual Network Computing (or vnc) servers that is written using AppGraphics and Fortran:</p><p><a href="https://www.microsoft.com/en-us/p/quick-virtual-network-computing/9ndq6hk8w3m2">https://www.microsoft.com/en-us/p/quick … dq6hk8w3m2</a></p><p>The manager in the screenshots that list the servers and allow connections is written in Fortran and AppGraphics with a small shim in to access Windows <a href="https://docs.microsoft.com/en-us/windows/win32/api/processthreadsapi/nf-processthreadsapi-createprocessa">CreateProcess</a> with input/output pipes (to transmit usernames and passwords).&nbsp; So, yes, you can write a Windows application in Simply Fortran and actually get it published in the Microsoft Store.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-04-22T11:26:29Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3475#p3475</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows apps]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3458#p3458" />
			<content type="html"><![CDATA[<p>I&#039;ve also used DISLIN to create a GUI for a Windows app written and built using SF.</p><p>Another idea is to program the &#039;app&#039; to send output not only to the GUI but also to output files that your program writes as text files with RTF code embedded in the text output.&nbsp; You can then have formatted results with underlining, boldface, page-breaks and so forth, and even vector graphics in your output file, ready for opening with M$Word.&nbsp; You need to learn &#039;RTF code to do this but it&#039;s not very difficult.<br />--- <br />John</p>]]></content>
			<author>
				<name><![CDATA[JohnWasilewski]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=102</uri>
			</author>
			<updated>2020-04-03T01:38:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3458#p3458</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Windows apps]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3457#p3457" />
			<content type="html"><![CDATA[<p>It depends on the application you&#039;re trying to develop.&nbsp; If you&#039;re planning to use Fortran only, then we do provide the <a href="https://simplyfortran.com/features/appgraphics">AppGraphics library</a> to create windows, menus, drawing surfaces, buttons, etc. from a Fortran (or C) program.&nbsp; The library is somewhat low-level and simple, though, so it might not contain every feature you&#039;re thinking of.</p><p>You can also use GTK+ with Simply Fortran, of course.&nbsp; If you&#039;re feeling adventurous, you can develop a true Win32 application in C (which is how Simply Fortran is written); Simply Fortran includes all the Windows-specific headers and libraries needed.&nbsp; We do not provide a direct Win32 interface from Fortran, though.</p><p>Can you provide a bit more detail about what you&#039;re thinking about writing?&nbsp; Perhaps we can provide some tips or guidance.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2020-03-30T11:23:32Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3457#p3457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Windows apps]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=3456#p3456" />
			<content type="html"><![CDATA[<p>Is it possible to develop full fledged windows app with Simply Fortran. If so, how?</p>]]></content>
			<author>
				<name><![CDATA[AmbiPresse]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3904</uri>
			</author>
			<updated>2020-03-30T08:43:00Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=3456#p3456</id>
		</entry>
</feed>
