<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — AppGraphics AutoTextProject]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=891&amp;type=atom" />
	<updated>2023-04-08T01:08:18Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=891</id>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4094#p4094" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>You are correct about keeping track of file and object unit numbers. With some better accounting of the open and closed unit numbers, the createmultilinetextbox appears to now work correctly.&nbsp; By adding Save and Print routines, I can now Read data from a text file, edit the text, then Save it, and Print it.&nbsp; Even though this can more easily be done with any notepad, having the ability to add this functionality to SF applications is a nice addition. Nice work.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2023-04-08T01:08:18Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4094#p4094</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4093#p4093" />
			<content type="html"><![CDATA[<p>Frank,</p><p>I&#039;ll look into it a bit more. There&#039;s a good chance there is an issue in the C&lt;-&gt;Fortran interfacing there or I&#039;m not seeing a problem.</p><p>Out of curiosity, are you reusing a unit number?&nbsp; That could cause some problems.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2023-04-07T20:09:44Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4093#p4093</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4092#p4092" />
			<content type="html"><![CDATA[<p>Hi Jeff,</p><p>UPDATE: Your suggestion does, in fact, clear the textbox using either buffer=&quot;&quot; or buffer=&quot; &quot;.</p><p>However, I&#039;m likely trying to use the textbox for something it was not intended to be used for.<br />When repeatedly (usually 3 times) Reading data, then Saving the textbox to a file, and Clearing it again, I receive an abort error from the autotext.f90 subroutine isfortranunitopen. I&#039;m not exactly sure of the cause of the problem. I&#039;ve also seen a recursive error from the same autotext.f90 subroutine.&nbsp; The problem is likely with my code and not your createmultilinetextbox routine.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2023-04-07T17:54:34Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4092#p4092</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4091#p4091" />
			<content type="html"><![CDATA[<p>Frank,</p><p>A call to <em>settextboxcontents</em> with an empty or all-spaces string should clear the contents.&nbsp; Perhaps a more explicit interface would be nice, though.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2023-04-07T11:43:08Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4091#p4091</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4090#p4090" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>Is there a programmatically way of &quot;Clearing&quot; (deleting) text in an already population multi-line textbox?</p><p>For example, when text is written to the textbox, I would like to delete all the contents, and then repopulated it.</p><p>A clear_textbox() function or something like that would help.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2023-04-06T17:43:05Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4090#p4090</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4087#p4087" />
			<content type="html"><![CDATA[<p>Frank,</p><p>You would have to take that step manually.&nbsp; The example code opens the file to display in read-only mode and attempts to display the results as the file updates.&nbsp; If you wanted to save the text box contents, which could have notes, you&#039;d need to manually offer that to users.&nbsp; I would think some indicator that the contents are modified to encourage saving might be sufficient.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2023-04-04T16:36:31Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4087#p4087</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4086#p4086" />
			<content type="html"><![CDATA[<p>Jeff,</p><p>Thanks for your prompt reply to my question. Adding the link to the library -lshlwapi worked perfectly.</p><p>However, I have one further question regarding the MultiLineTextBox object.&nbsp; I noticed that it&#039;s possible to scroll and type within the textbox even after the results are displayed.</p><p>So to my question, once the results are displayed and comments referring to the results are added manually by typing them in the text box, would it be possible to have the typed-in comments saved with the results file itself? Currently, they are not saved.</p><p>Frank</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2023-04-04T16:23:14Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4086#p4086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4085#p4085" />
			<content type="html"><![CDATA[<p>Frank,</p><p>The project requires another library for linking, <em>shlwapi</em>, that provides those functions.&nbsp; They&#039;re standard Windows API calls.&nbsp; Make sure your linking flags include at least the following:</p><div class="codebox"><pre><code>-lappgraphics -lgdi32 -lcomdlg32 -lcomctl32 -luuid -loleaut32 -lole32 -lshlwapi</code></pre></div><p>and it should compile fine.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2023-04-02T22:13:26Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4085#p4085</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[AppGraphics AutoTextProject]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=4082#p4082" />
			<content type="html"><![CDATA[<p>Hi Jeff,</p><p>I was unable to compile your AutoText MultiLine project example using MS Windows 10 and SF 3.29. I received the following error but don&#039;t know the reason for the error.</p><p>BTW, At first read, it appears that your application of real-time multi-line printing has the potential to be a useful addition to Simply Fortran&#039;s toolbox.</p><p>Frank</p><p>==============================================================================<br />Generating Makefile... Okay<br />==============================================================================<br />Processing default resource<br />Generating multilinetextbox.exe<br />build\autotext_thread.o:autotext_thread.c:(.text+0x141): undefined reference to `_imp__PathIsRelativeA@4&#039;<br />build\autotext_thread.o:autotext_thread.c:(.text+0x1ec): undefined reference to `_imp__PathCombineA@12&#039;<br />build\autotext_thread.o:autotext_thread.c:(.text+0x26a): undefined reference to `_imp__PathRemoveFileSpecA@4&#039;<br />collect2.exe: error: ld returned 1 exit status<br />Error: Last command making (multilinetextbox.exe) returned a bad status<br />Error: Make execution terminated</p><p>* Failed *</p>]]></content>
			<author>
				<name><![CDATA[drfrank]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=223</uri>
			</author>
			<updated>2023-04-02T15:21:58Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=4082#p4082</id>
		</entry>
</feed>
