<br><br>On Friday, July 18, 2014, Dmitry Pavlov <<a href="mailto:dpavlov@ipa.nw.ru">dpavlov@ipa.nw.ru</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Matthew,<br>
<br>
> To get rid of the 5 pixels, you want to set the "inset", not the<br>
> "margin". See `vertical-inset` and `horizontal-inset` in `editor-canvas%`.<br>
<br>
Thanks, it worked!<br>
<br>
Robby,<br>
<br>
>> You can put the text% object directly into the editor-canvas if you want.<br>
<br>
Err, how do I do that? I just tried<br>
<br>
(require racket/gui)<br>
(define frame (new frame% (label "Test")))<br>
(define pasteboard (new pasteboard%))<br>
(define editor-canvas<br>
(new editor-canvas%<br>
(editor pasteboard)</blockquote><div><br></div><div>Use [editor t] on the line just above here (and move the definition of t up).</div><div><br></div><div>And sorry for getting the margin and inset mixed up!</div>
<div><br></div><div>Robby</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(parent frame)<br>
(style '(no-border no-hscroll no-vscroll))))<br>
(define t (new text%))<br>
(send pasteboard insert t 0 0)<br>
(send frame resize 100 100)<br>
(send frame show #t)<br>
<br>
and got<br>
<br>
insert in pasteboard%: bad argument combination: (object:text% ...) 0 0<br>
<br>
<br>
Best regards,<br>
<br>
Dmitry<br>
</blockquote>