M
Marc Scheuner
Folks,
I'm writing a component to automatically store a form's size and
position to the registry, and restore it from there. Works fine,
except...
If my form is 300x500 pixel, at location (100,100), and I maximize it,
everything's fine - I can restore it back to "regular" size.
However, if I store the form's location and size into the registry,
while it's maximized, and then close it, next time around, it gets
opened in maximized state as expected. BUT: I can't restore it back to
its pre-maximized size.
Is there any way I can access the size that the form was before being
maximized, and store that into the registry (and restore it from
there), too??
I did see a "restoredWindowBounds" variable inside my form when
debugging - but that appears to be internal, and I can't seem to find
a way to access it.....
Any ideas??
Thanks!
Marc
I'm writing a component to automatically store a form's size and
position to the registry, and restore it from there. Works fine,
except...
If my form is 300x500 pixel, at location (100,100), and I maximize it,
everything's fine - I can restore it back to "regular" size.
However, if I store the form's location and size into the registry,
while it's maximized, and then close it, next time around, it gets
opened in maximized state as expected. BUT: I can't restore it back to
its pre-maximized size.
Is there any way I can access the size that the form was before being
maximized, and store that into the registry (and restore it from
there), too??
I did see a "restoredWindowBounds" variable inside my form when
debugging - but that appears to be internal, and I can't seem to find
a way to access it.....
Any ideas??
Thanks!
Marc