[racket] Cannot minimize a window frame%
Matthew,
It seems the problem is with some (perhaps incompatible) parameters to a
frame%. Specifically if the style or stretchable-width parameters are
removed from the following code the windows behaves as expected.
Kieron.
****
#lang racket/gui
(define f
(new
frame%
(parent #f)
(label "test minimize")
(x 35)
(y 35)
(style '(no-resize-border))
(min-width 800)
(min-height 600)
(stretchable-width #f)
))
(send f show #t)
On Tue, Jun 19, 2012 at 7:33 AM, Matthew Flatt <mflatt at cs.utah.edu> wrote:
> Can you provide an example? The `iconize' method of `frame%' seems to
> work for me on Windows, and I'm not sure what else to try.
>
> At Mon, 18 Jun 2012 17:39:24 -0600, Kieron Hardy wrote:
> > Hi all,
> >
> > I have a GUI with a couple of frame% windows, and I cannot minimize them.
> >
> > Overriding on-activate and printing a message, shows that frame% attempts
> > to minimize at first (i.e. on-activate is called with activate? value
> #f) -
> > but then immediately gets re-activated (i.e. on-activate is recalled with
> > active? value #t) and then any further attempts just show on-activate
> only
> > called with active? value #t.
> >
> > I probably doing something dumb but can't figure it out. Anyone have an
> > idea about what might be going on?
> >
> > Cheers,
> >
> > Kieron.
> > ____________________
> > Racket Users list:
> > http://lists.racket-lang.org/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20120619/839c3687/attachment.html>