>
>I create this very simple app. In VFP 5.0
>
>Config.fpw contain this line.
>SCREEN=OFF
>
>App contains next lines.
>APPLICATION.VISIBLE=.F.
>APPLICATION.WINDOWSTATE=0
>SET CLASSLIB TO form_as_top
>MyFrm=CREATEOBJECT('form_as_top')
>MyFrm.VISIBLE=.T.
>WAIT
>MyFrm.RELEASE
>APPLICATION.VISIBLE=.T.
>QUIT
>
>If I run this program, main FoxPro window NEVER!!! flashing.
>BUT!!! If I change second line of app to APPLICATION.WINDOWSTATE=1,
>main FoxPro window ALLWAYS!!! flashing.
>Simply, if Foxpro is quiting maximized, next run flashing.
>If Foxpro is quiting in normal window, next run not flashing.
>Is tis a feature of VFP 5.0?
>
>Maros Klempa
Try adding the line in config.fpw
RESOURCE=OFF
Maybe VFP is storing the last run info in the resource which we really do not need in an exe.
Also, if you have SCREEN=OFF you don't need APPLICATION.VISIBLE = .F. at the start.
And for an executable, there is no need AT ALL to do APPLICATION.VISIBLE = .T. before quitting. We are not in the VFP programming environment here and there is NO need to reset it as there is no resource! THis will cause the screen to flash when it quits :(
Bernard