Save the current messagebox text and selection when switching orientation.