| Home | Previous Lesson: Basic Window Services Next Lesson: Sheet Manager Services |
This service allows you to save the user's window size, window position, toolbar settings and restore them whenever needed. To use this service, you need to turn on the service:
this.of_SetPreference(TRUE)
// We wrote in the Window Open event.
You can control the settings you want to save by calling the following functions. Call only those functions whose corresponding settings you want to save.
PFC has the code to save these preferences and to restore them. If you want to save them from somewhere else for any reason, you need to call of_Save() function to save the settings.
this.inv_preference.of_Save &
(gnv_app.of_GetUserINIFile(), "WindowSettings")
To restore the settings, call of_Restore() function.
| Home | Previous Lesson: Basic Window Services Next Lesson: Sheet Manager Services |