Your example works and made me realize that I've
accidentally removed a list-box *inside* the panel rather than the
panel itself in my application. No wonder it didn't work!

Thank you so much!



 On Thu, 23 Feb 2017 05:17:23 -0700
Matthew Flatt <> wrote:

> If so, is there a change that makes it behave like your program?
> ----------------------------------------
> #lang racket/gui
> (define f (new frame% [label "Stretch"]))
> (define B (new vertical-panel%
>                [parent f]))
> (define A (new editor-canvas%
>                [parent B]))
> (define C (new vertical-panel%
>                [parent B]))
> (void
>  (new button%
>       [parent C]
>       [label "Remove Me"]
>       [callback (lambda (c e)
>                   (send B change-children (lambda (l) (list A))))]))
> (send f show #t)

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 
For more options, visit

Reply via email to