Página 1 de 1
TForm:SaveState()
Publicado: Jue Feb 09, 2006 2:03 pm
por Ingo Junge-Herrmann
Ignacio,
if you saved the state of the iconized mainform you can not start the app
again if ::RestoreState() is used.
Here the saved string: MAINWIN=008D006A02A201D4M
How to find out the state of the form before closing?
Regards
Ingo
TForm:SaveState()
Publicado: Jue Feb 09, 2006 2:09 pm
por jfgimenez
Ingo,
> if you saved the state of the iconized mainform you can not start the app
> again if ::RestoreState() is used.
>
> Here the saved string: MAINWIN=008D006A02A201D4M
the final 'M' character means the window is minimized. 'X' is used if the
window is maximized, and 'N' if it is in its restored state (normal).
> How to find out the state of the form before closing?
I've just replied to you in the beta NG
--
Regards,
Jose F. Gimenez
TForm:SaveState()
Publicado: Jue Feb 09, 2006 2:09 pm
por jfgimenez
Ingo,
> if you saved the state of the iconized mainform you can not start the app
> again if ::RestoreState() is used.
>
> Here the saved string: MAINWIN=008D006A02A201D4M
the final 'M' character means the window is minimized. 'X' is used if the
window is maximized, and 'N' if it is in its restored state (normal).
> How to find out the state of the form before closing?
I've just replied to you in the beta NG
--
Regards,
Jose F. Gimenez
TForm:SaveState()
Publicado: Jue Feb 09, 2006 5:28 pm
por Ingo Junge-Herrmann
Jose,
thank you, but please take notice that the app can not be started again if
it was closed as minimized window with saving this state. An errormessage
occurs which says that there is no Application:oMainForm. Please take a look
at your sourcecode of ::RestoreState() what happens if the final character
is 'M'.
As workaround I do avoid to save the :SaveState()-string if the window is
minimized. For that I need to know if the window is minimized. I will try
it now with the XA_FUNC you gave me.
Regards
Ingo
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> wrote:
>Ingo,
>
>> if you saved the state of the iconized mainform you can not start the
app
>> again if ::RestoreState() is used.
>>
>> Here the saved string: MAINWIN=008D006A02A201D4M
>
>the final 'M' character means the window is minimized. 'X' is used if the
>window is maximized, and 'N' if it is in its restored state (normal).
>
>
>> How to find out the state of the form before closing?
>
>I've just replied to you in the beta NG
>
>--
>Regards,
>
>Jose F. Gimenez
>
>
TForm:SaveState()
Publicado: Jue Feb 09, 2006 5:28 pm
por Ingo Junge-Herrmann
Jose,
thank you, but please take notice that the app can not be started again if
it was closed as minimized window with saving this state. An errormessage
occurs which says that there is no Application:oMainForm. Please take a look
at your sourcecode of ::RestoreState() what happens if the final character
is 'M'.
As workaround I do avoid to save the :SaveState()-string if the window is
minimized. For that I need to know if the window is minimized. I will try
it now with the XA_FUNC you gave me.
Regards
Ingo
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> wrote:
>Ingo,
>
>> if you saved the state of the iconized mainform you can not start the
app
>> again if ::RestoreState() is used.
>>
>> Here the saved string: MAINWIN=008D006A02A201D4M
>
>the final 'M' character means the window is minimized. 'X' is used if the
>window is maximized, and 'N' if it is in its restored state (normal).
>
>
>> How to find out the state of the form before closing?
>
>I've just replied to you in the beta NG
>
>--
>Regards,
>
>Jose F. Gimenez
>
>