<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title></title>
</head>
<body>
From the moment I read the email that explained the first thin line
problem, it was obvious to me it was the text-field% and not text-box%.<br>
text-field% uses the OS's api function that gets the character height
to find out what height it has to be.<br>
I believe if you try<br>
<pre wrap="">(define f (make-object frame% "Test"))
(define c (instantiate editor-canvas% (f)
[stretchable-height #f]
[style '(no-vscroll no-hscroll)])
<code class="scheme"><code class="scheme"><span class="keyword">(send</span></code> c<code
class="scheme"><span class="variable"></span></code> set-line-count 1<code
class="scheme"><span class="variable"></span></code>)
</code>(send f show #t)
</pre>
It might give you the same problem as a text-field%<br>
Try setting the line count to 20, I wonder what will happen.<br>
Anyway, I had the same problem with Windows (on every program), and the
solution was resetting the global font sizes (or something like that)
from the control panel. Is that possible under linux?<br>
<br>
Katsmall the Wise<br>
<a class="moz-txt-link-abbreviated" href="mailto:kela_bit@netvision.net.il">kela_bit@netvision.net.il</a><br>
<br>
Dimitry Gashinsky wrote:<br>
<blockquote type="cite" cite="mid1047311631.2669.3.camel@localhost">
<pre wrap=""> For list-related administrative tasks:
<a class="moz-txt-link-freetext" href="http://list.cs.brown.edu/mailman/listinfo/plt-scheme">http://list.cs.brown.edu/mailman/listinfo/plt-scheme</a>
On Mon, 2003-03-10 at 08:56, Matthew Flatt wrote:
</pre>
<blockquote type="cite">
<pre wrap=""> (define f (make-object frame% "Test"))
(make-object text-field% #f f void)
(send f show #t)
</pre>
</blockquote>
<pre wrap=""><!---->
This produced just a thin line.
</pre>
<blockquote type="cite">
<pre wrap=""> (define f (make-object frame% "Test"))
(instantiate editor-canvas% (f)
[stretchable-height #f]
[style '(no-vscroll no-hscroll)])
(send f show #t)
</pre>
</blockquote>
<pre wrap=""><!---->
But this code worked correctly. I think you are on to something here.
Thanks again,
Dima
</pre>
</blockquote>
</body>
</html>