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
In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.
TForm:SaveState()
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TForm:SaveState()
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
> 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()
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
> 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
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TForm:SaveState()
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
>
>
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
>
>
-
- Mensajes: 339
- Registrado: Lun Jul 02, 2007 7:17 pm
TForm:SaveState()
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
>
>
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
>
>