demo of the usage of  wxMessageDialog through  a leaving Dialog.