Try this:

     (send a-pasteboard set-selection-visible #f)

Normally, you would create your own class derived from `pasteboard%`, to 
add the specialized snip management code.  In that case, you can add the 
following line to your class declaration, right after the `(super-new)` 
call.

    (send this set-selection-visible #f)

Cheers,
Alex.


On Wednesday, February 28, 2018 at 7:28:29 PM UTC+8, David Alkire wrote:
>
> How could I set the style of my piece snips so that they don't have the 
> selected bounding box as I select and drag them?
>
> On Sun, Feb 25, 2018, 6:12 AM David Alkire <david....@gmail.com 
> <javascript:>> wrote:
>
>> That's interesting. Thanks, I'll give it a try.
>>
>> On Fri, Feb 23, 2018, 11:24 PM Alex Harsanyi <alexha...@gmail.com 
>> <javascript:>> wrote:
>>
>>> You want to use a pasteboard% for the chess table and snip% objects for 
>>> the pieces.  You can draw the board as the pasteboard background in the 
>>> on-draw method.
>>>
>>> You will have to implement snip management in the pasteboard though 
>>> because by default snips can just be dragged around and placed anywhere.
>>>
>>> There’s a racket game collection which might provide useful classes, but 
>>> I have no experience with those.
>>>
>>> Best regards,
>>> Alex
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "Racket Users" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/racket-users/BPM0bb-MpnM/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> racket-users...@googlegroups.com <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to