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! Best, Erich On Thu, 23 Feb 2017 05:17:23 -0700 Matthew Flatt <mfl...@cs.utah.edu> 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 to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.