in reply to How do I destroy a control after its creation in wxPerl?

You can simply ->Hide the warning box and set the built-in status text to anything.

Then when you show a warning again, ->Show the warning box and clear the status text (or set the warning box to be exactly the size of the status field you're covering, with the help of Wx::Statusbar::GetFieldRect)

Replies are listed 'Best First'.
Re^2: How do I destroy a control after its creation in wxPerl?
by ZJ.Mike.2009 (Scribe) on May 11, 2011 at 23:40 UTC
    Thanks Anonymous Monk, This helps.