[plt-scheme] drscheme 203.5 problem

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Mon Mar 10 12:47:05 EST 2003

At 10 Mar 2003 12:10:19 -0500, Dimitry Gashinsky wrote:
> On Mon, 2003-03-10 at 11:28, Katsmall the Wise wrote:
> > (define f (make-object frame% "Test"))
> > (define c (instantiate editor-canvas% (f)
> >             [stretchable-height #f]
> >             [style '(no-vscroll no-hscroll)])
> > (send c set-line-count 1)(send f show #t)
> > It might give you the same problem as a text-field%
> > Try setting the line count to 20, I wonder what will happen.
> This code worked correctly. It produced text field of the proper height.
> I did not had to set it to 20. If I set it 20 I get exactly the same
> result.

`set-line-count' won't do anything until the canvas has an editor
attached. So the next test is to inset

  (send c set-editor (make-object text%))

before and/or after the `set-line-count' send.

> > 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?
> > 
> I am not sure what the resize of font procedure will equate on Linux. I
> am more a console person myself. I originally thought that this has to
> do with fonts, but Matthew said that it is unlikely.

Well, I might be wrong...


Posted on the users mailing list.