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
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
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"]
3 matches
Mail list logo