Hi,
I am opening Child window from Base Window, and in Child window
some of the toggle buttons i am sellecting and deselecting. After this i am
closing chid window. If i reopen same chaid window i want to have previous
settings. How to do, I have actually OK and Cancel buttons also. If I press
OK button i want to have previous settings.
Hello Rajarama
There are a couple of things you can do. When the user goes to close
the window, instead of actually closing it, you could catch the close
event and instead of actually closing it, you could move it to some
region off the screen ( -1000, -1000, or something like that ). This
would mean that when you go to create the window from the base window
you would have to check if the window alreayd exists, and if it does,
then just move it on to the screen, if it doesn’t then create it.
Another way would be to store the previous values of the widgets
somwhere ( i.e. in memory, on disk, whatever makes more sense for you )
and then have a realized functions for each of the widgets. When they
are relaized set there values to the previous stored values.
Rodney
Rajarama wrote:
Hi,
I am opening Child window from Base Window, and in Child window
some of the toggle buttons i am sellecting and deselecting. After this i am
closing chid window. If i reopen same chaid window i want to have previous
settings. How to do, I have actually OK and Cancel buttons also. If I press
OK button i want to have previous settings.
\