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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SCREEN=OFF to hide VFP 6.0 Main Window not working... 2

Status
Not open for further replies.

cfox

Programmer
Aug 1, 2001
5
US
Hi,

I'm 6 months old in the world of VFP 6.0. I'm running WIN98, One form, no other code yet. I have read every FAQ and thread in regard to hiding the main VFP window. There is one method (found in the threads) that I use that works, although, I still see a flash of the main window.. (below)

MyForm.InitEvent
_SCREEN.vISIBLE = .F.
tHIS.sHOW()
READ EVENTS
**
set in the forms property sheet...(not thru code)
.ShowWindow = 2
.MDIform = .f.
.ALwaysOnTop=.t.
**
All other forms called from this form,
.ShowWindow = 1

I would like to use the SCREEN=OFF method instead in the config.fpw file, but everything I've tried has been unsuccessful. It continues to flash and dissappear, both main window and my form.

Can someone please let me know exactly what the properties for the form should be when using SCREEN=OFF?

Thank you in advance...
 
cfox

Change the Forms "ShowWindow" property to "As Top-Level Form".

Hope this does it for you,
Steve
 
It sounds like your config.fpw file isn't working. If you have SCREEN=OFF in it, then it shouldn't flash on and back off again.

Is the config.fpw file in the same directory as your project? Do you have the file INCLUDED in the project? What else do you have in the config.fpw file?
 
spayne,

Thanks for your reply, unfortunately, I have tried everything. Below are the properties I have played with.

ShowWindow=As Top-Level Form
WindowType=Modal/Modeless (tried both)
Desktop=.t.(Toggled this on and off)
Midiform=.f.
AlwaysOnTop=.t.

I've also put SCREEN=OFF in the config file and made sure that it was included in my project.

All of these in combination and separately, same result (A flash of the main window followed by a flash of my form.

Any other ideas?


Cheryl


 
chpicker,

The config.fpw file is in the same directory as my project. I have double checked to make sure that it is included in my project. The only thing in the config file is SCREEN=OFF. Once or twice I received an error saying that it couldnt find the variable off. This tells me that it doesnt understand the command SCREEN=OFF??? strange huh? I have also tried Set screen=off. No go.

Thanks for your reply


Cheryl
 
I usually set a simple program like this as my main program of the project.

DO FORM MyMainForm
READ EVENTS

Then, in the Main form's init event I will say Application.Visible = .F.
 
That worked like a charm spayne!

Thank you, thank you, thank you....

and thank you chpicker for your advice also


Cheryl:->
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top