Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Avoiding 'Flicker' on Startups of EXEs?

Status
Not open for further replies.

pt777

Technical User
Mar 27, 2004
62
US
I've tried to avoid bothersome (app startup) flickers by:
placing commands _screen.visible=.F. and _screen.lockscreen=.T. immediately in the main.prg(s).

This workaround helps but does not completely stop the bothersome startup blinking/flickering that occurs

... that is to say, VFP has a visible screen during startup of exes that I'm trying to make invisible BEFORE main.prg if feasible.

Thanks in advance for any suggestions or feedback!
 
pt777

If you don't have one, create a config.fpw file and put
Code:
[COLOR=blue]SCREEN = OFF[/color]
at the top of the file.

This will prevent the behaviour you describe - at a suitable point in your main.prg, put
Code:
[COLOR=blue]_SCREEN.Visible = .T.[/color]
to enable the application to be visible.

There are numerous threads on the use of config.fpw in this forum, so a keyword search should find what you need.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander[sup]tm[/sup].com
PDFcommander[sup]tm[/sup].co.uk


 
Thanks Chris,
I had no idea I could use a config.fpw file in my exe directory (till I read up on it).
That fixed it.

Philip
 
I'm also using SCREEN = OFF/_SCREEN.Visible = .T. with success. It works fine, but still some flickering persists. Before DO MyMenu.mpr in my main program a system menu is visible for a moment. Is there any way how to avoid this.
Toman
 
Toman

Put
Code:
[COLOR=blue]_SCREEN.Visible = .T.[/color]
after
Code:
[COLOR=blue]DO MyMenu.mpr[/color]
and before READ EVENTS so your app is initialised before it becomes visible.

Alternatively, put
Code:
[COLOR=blue]SET SYSMENU TO[/color]
at the start of your main.prg

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander[sup]tm[/sup].com
PDFcommander[sup]tm[/sup].co.uk


 
toman,

put SET SYSMENU OFF in the first lines of your MAIN.prg.

hope this helps. peace! [peace]

kilroy [trooper]
philippines

"Illegitimis non carborundum!"
-Gen. Joseph Stilwell
 
ChrisRChamberlain and torturedmind

you both are perfectly true. How could I miss it. It was o drop out. I am using "if version(2) <> 0" clause in programs, so I don't see normal start of application so often and some flickering doesn't bother me so much. Only this thread remember this..

Thank you and take my excuse for stupid question. Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top