You can save all properties of all widgets in a window and then reset them back when you need it.