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.

TForm:SaveState()

Xailer professional forum in English
Responder
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

TForm:SaveState()

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TForm:SaveState()

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5706
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

TForm:SaveState()

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

TForm:SaveState()

Mensaje 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
>
>
Ingo Junge-Herrmann
Mensajes: 339
Registrado: Lun Jul 02, 2007 7:17 pm

TForm:SaveState()

Mensaje 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
>
>
Responder