The OnSave message is sent when your widget is about to be destroyed and enables the widget to save data set on the widget.