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

2018-02-22 Thread Robby Findler
If you need the size before it is shown, you can use reflow-container. Robby On Thu, Feb 22, 2018 at 6:22 AM David Alkire wrote: > 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

[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-users] Re: Is it possible to get the size of a panel%

2018-02-21 Thread Alex Harsanyi
Get-size should work, can you provide a example that illustrates the problem? The only tricky bit is that the actual size of a widget is only computed after it is shown. Here is an example: #lang racket (require racket/gui) (define toplevel (new frame% [label "hello"]