Re: [racket-users] Are canvases stackable?

2018-02-28 Thread David Alkire
ble #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 Su

Re: [racket-users] Are canvases stackable?

2018-02-28 Thread David Alkire
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 wrote: > That's interesting. Thanks, I'll give it a try. > > On Fri, Feb 23, 2018, 11:24 PM Alex Harsanyi

Re: [racket-users] Are canvases stackable?

2018-02-25 Thread David Alkire
That's interesting. Thanks, I'll give it a try. On Fri, Feb 23, 2018, 11:24 PM Alex Harsanyi 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

[racket-users] Are canvases stackable?

2018-02-23 Thread David Alkire
Is it possible to stack two (or more) canvases on top of one another. I'm working on a chess app and I don't want to draw individual squares under each piece. I would prefer to have a board canvas that doesn't change and a transparent canvas with pieces overlaying it. Is that possible? Is that t

[racket-users] Re: Is it possible to get the size of a panel%

2018-02-22 Thread David Alkire
Thanks. It was the tricky bit that tricked me. I was trying to get the size of the panel before it was painted. I guess I should default to the mins and update afterward based on the available calculated size. -- You received this message because you are subscribed to the Google Groups "Racket

[racket-users] Is it possible to get the size of a panel%

2018-02-21 Thread David Alkire
Is it possible to get the current size (width and height) of a panel% from racket/guilty? I haven't been able to figure out a way. I set a min-width and min-height in my panel and allow them to be stretchable. If they do stretch, I want to be able to know their current size. Sending get-size or