Hi Xailers,
the last letter of the returned string TForm:SaveState() is a lowercase
character. But TForm:RestoreState() needs uppercase.
Line 687 of Form.prg has to be deleted.
685 IF ::lHideOnClose
686 ::Hide()
687 RETURN 0 <== this is wrong
688 ENDIF
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.
2.4
2.4
Ingo,
> the last letter of the returned string TForm:SaveState() is a lowercase
> character. But TForm:RestoreState() needs uppercase.
The last character is uppercase when the form is visible, but lowercase when
it's hidden. So, RestoreState() make's the form visible only when the last
character is uppercase.
> Line 687 of Form.prg has to be deleted.
>
> 685 IF ::lHideOnClose
> 686 ::Hide()
> 687 RETURN 0 <== this is wrong
> 688 ENDIF
No, it's ok. The property lHideOnClose means that the form must be hidden
when the user tries to close it, instead of closing it. So, as you can see,
the for is hidden by calling ::Hide(), and a 0 is returned to avoid the form
to be closed by the OS.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
> the last letter of the returned string TForm:SaveState() is a lowercase
> character. But TForm:RestoreState() needs uppercase.
The last character is uppercase when the form is visible, but lowercase when
it's hidden. So, RestoreState() make's the form visible only when the last
character is uppercase.
> Line 687 of Form.prg has to be deleted.
>
> 685 IF ::lHideOnClose
> 686 ::Hide()
> 687 RETURN 0 <== this is wrong
> 688 ENDIF
No, it's ok. The property lHideOnClose means that the form must be hidden
when the user tries to close it, instead of closing it. So, as you can see,
the for is hidden by calling ::Hide(), and a 0 is returned to avoid the form
to be closed by the OS.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
2.4
José,
thanks for answering.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> schrieb im Newsbeitrag
news:[email=4e497050@svctag-j7w3v3j....]4e497050@svctag-j7w3v3j....[/email]
> Ingo,
>
>> the last letter of the returned string TForm:SaveState() is a lowercase
>> character. But TForm:RestoreState() needs uppercase.
>
> The last character is uppercase when the form is visible, but lowercase
> when it's hidden. So, RestoreState() make's the form visible only when the
> last character is uppercase.
>
A small form with the property lAppWindow := .T. should start in the same
state as ending. But when it ended minimized the last Charakter is "m" now.
But it should be "M" to be shown minimized in the systems task bar. With "m"
you can't see it there as it should.
>
>> Line 687 of Form.prg has to be deleted.
>>
>> 685 IF ::lHideOnClose
>> 686 ::Hide()
>> 687 RETURN 0 <== this is wrong
>> 688 ENDIF
>
> No, it's ok. The property lHideOnClose means that the form must be hidden
> when the user tries to close it, instead of closing it. So, as you can
> see, the for is hidden by calling ::Hide(), and a 0 is returned to avoid
> the form to be closed by the OS.
>
You're right, sorry.
Regards
Ingo
thanks for answering.
"Jose F. Gimenez" <jfgimenez@wanadoo.es> schrieb im Newsbeitrag
news:[email=4e497050@svctag-j7w3v3j....]4e497050@svctag-j7w3v3j....[/email]
> Ingo,
>
>> the last letter of the returned string TForm:SaveState() is a lowercase
>> character. But TForm:RestoreState() needs uppercase.
>
> The last character is uppercase when the form is visible, but lowercase
> when it's hidden. So, RestoreState() make's the form visible only when the
> last character is uppercase.
>
A small form with the property lAppWindow := .T. should start in the same
state as ending. But when it ended minimized the last Charakter is "m" now.
But it should be "M" to be shown minimized in the systems task bar. With "m"
you can't see it there as it should.
>
>> Line 687 of Form.prg has to be deleted.
>>
>> 685 IF ::lHideOnClose
>> 686 ::Hide()
>> 687 RETURN 0 <== this is wrong
>> 688 ENDIF
>
> No, it's ok. The property lHideOnClose means that the form must be hidden
> when the user tries to close it, instead of closing it. So, as you can
> see, the for is hidden by calling ::Hide(), and a 0 is returned to avoid
> the form to be closed by the OS.
>
You're right, sorry.
Regards
Ingo