set main frame as the parent of MessageBoxes to make them show in center of wxMEdit rather than center of screen under UNIX-like OS