<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — How toshow a blank textrow on screen]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=624&amp;type=atom" />
	<updated>2017-05-03T17:55:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=624</id>
		<entry>
			<title type="html"><![CDATA[Re: How toshow a blank textrow on screen]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2854#p2854" />
			<content type="html"><![CDATA[<p>Jeff,<br />I suppose the NOTRIM flag will be an optional parameter to Outtext ? That should be fine. An additional character at the end I used already : a dot. A filled box is only a solution if rows in my edit sheet has to be overwritten.<br />regards, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2017-05-03T17:55:26Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2854#p2854</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How toshow a blank textrow on screen]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2853#p2853" />
			<content type="html"><![CDATA[<p>Klaus,</p><p>A string of spaces or trailing spaces will not be printed by AppGraphics because of how strings are converted from Fortran to C.&nbsp; Because Fortran doesn&#039;t have a true &quot;end of string&quot; character like C (the NULL character), spaces are regularly used as empty slots in a Fortran string.&nbsp; When preparing the string for C, the Fortran string is basically converted using the expression:</p><div class="codebox"><pre><code>TRIM(FSTRING)//C_NULL_CHAR</code></pre></div><p>The result is that trailing spaces are removed.&nbsp; If the string is only spaces, it is completely empty once it gets to the AppGraphics drawing routines.</p><p>To get around this procedure, you could do a few things:</p><p>1. Add a single character at the end of your string (like a pipe &quot;|&quot; character)</p><p>2. Draw an filled box over the old text manually</p><p>We could add an optional flag to the outtext calls, something like <em>NOTRIM</em>, in the next version (probably available next week) that would allow printing spaces.&nbsp; Perhaps that would be the ideal fix?</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2017-05-03T11:33:38Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2853#p2853</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How toshow a blank textrow on screen]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2852#p2852" />
			<content type="html"><![CDATA[<p>Jeff, there is an additional problem I have with OUTTEXT in my edit sheet by scrolling text up and down:<br />Previous text of a row has to be overwritten by new text of the row moved up or down.<br />This is no problem by formatted numerical data when it is written to a text row for edditing. <br />But if the end the row keeps input-text with different length, OUTTEXT stops with the last printable character and ignores blanks.<br />In this case the sheet gets unusable after scrolling the text.<br />What can I do to solve this problem??? <br />Regards, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2017-05-02T15:43:45Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2852#p2852</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How toshow a blank textrow on screen]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=2851#p2851" />
			<content type="html"><![CDATA[<p>Jeff,<br />My problem is a matter using outtext of AppGraphics:<br />Normally a blank row with text is not really useful to show on screen , but in my edit sheet I want to insert blank text rows. The purpose is that users can fill it with&nbsp; own data.<br />If&nbsp; I define that row as:<br /> row(cel%r+scroll)(4:maxcol)= &#039;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&#039;<br />or <br />! do i = 4, maxcol; row(cel%r+scroll)(i:i) = char(32); end do<br />Outtext will show nothing; I did solve is preliminary using dots in a not so smart way as follows:<br /> row(cel%r+scroll)(4:maxcol)= &#039; .&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;.&#039;<br />Write(row(cel%r+scroll)(:3),&#039;(I3)&#039;) cel%r+scroll !... the inserted row</p><p>The next rows on screen have to be moved by one position down:<br /> do i=cel%r,maxrow&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ! Re-writing changed rows <br />&nbsp; &nbsp; CALL settextxy(1,charh*(i-1)) !put row in textwindow starting at column 1<br />&nbsp; &nbsp; call Outtext(row(i+scroll)(:maxcol))<br /> end do</p><p>Is there an other way to avoid that dots?</p><p>I am working to make my edit sheet more &quot;monkey proof&quot; prior to publish it&nbsp; on my site. <br />This is only one point which I want to correct.</p><p>Regards, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2017-05-02T11:14:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=2851#p2851</id>
		</entry>
</feed>
