Re: [racket-users] Re: Making a snip% select itself in a text%

2017-03-02 Thread Erich Rast
On Thu, 2 Mar 2017 03:32:08 -0800 (PST) Alex Harsanyi wrote: > You need to tell the snip admin that the snip needs to be redrawn. > In your select-this-snip method, add > > (send (get-admin) needs-update this 0 0 width height) > It still doesn't work. I'm using

[racket-users] Re: Making a snip% select itself in a text%

2017-03-02 Thread Alex Harsanyi
On Thursday, March 2, 2017 at 7:12:22 PM UTC+8, erich wrote: > Hi! I have a simple non-editable and non-resizable snip% class that in > its draw function distinguishes whether it's selected or not. It works > fine when I select it in a text% with the mouse. > > Now I want to select it in the