[racket] GUI Toolkit related---Simple

From: Laurent (laurent.orseau at gmail.com)
Date: Thu May 1 11:38:25 EDT 2014

On Thu, May 1, 2014 at 5:22 PM, Zee Ken <udaybhasker552009 at gmail.com> wrote:

> When I click on the button *Click Me*, it has to show *mystrng* like when
> I use draw-text procedure in a canvas instead it only shows, *Line1
> text...* and the rest doesn't appear.
>

It's because the size of the `message%` does not automatically adapt by
default to the new text, so you see only the first line (even though all
lines are here, but they are just hidden).
To automatically resize it, just add:
(send msg auto-resize #t)
right after the definition of `msg`, and it should work fine.

I'm not sure I understood the rest of your question.

Laurent
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20140501/67a147a6/attachment.html>

Posted on the users mailing list.