I did something similar using the function objectDelete. See
[mailto:email@example.com] Em nome de James Ollis
Enviada: terça-feira, 28 de Fevereiro de 2006 21:56
Assunto: [wxhaskell-users] Destroying controls
I have looked everywhere, but have not as yet found a way to manually destroy a control in wxHaskell. I've created my own custom control, but I want to be able to remove it from the screen as and when I require.
Any help would be much appreciated,