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

Problem: running form

Status
Not open for further replies.

OldtTimerDon

Programmer
Oct 6, 2012
34
US
I am using VFP9. When I run a form, I am getting a Properties.Desktop screen that overlaps my form. I cannot move this properties window which blocks my txtbuttons and prevents me from exiting the program. I cannot find an option that turns off the properties window when running the program.
Is this another "feature" of VFP9?
The Senile Senior
Don
Sun City, AZ
 
If you run a modal form, this can be the case.

Well, close VFP IDE forms before running your app. The Command Window automatically disappears at runtime, but project manager and property window and others won't.

The property window also won't make it into the EXE version.

Do you have dual monitor? You can drag the property window out of _screen to the second monitor and actually use it for debugging purposes during tests in the IDE. That can be quite useful. The same goes for the datasession window.

You can't use them though, while a modal form of your application runs. This is another good argument for using nonmodal forms, especially of a main form, if your app starts one. Don't forget about READ EVENTS / CLEAR EVENTS.

Bye, Olaf.
 
Don,

You could execute the following command at the start of your main program or form:

Code:
DEACTIVATE WINDOW "Properties"

Then, when your main program is about to close:

Code:
IF WEXIST("Properties")
  ACTIVATE WINDOW "Properties"
ENDIF

If necessary, you can do the same with "View" and "Document View". However, this is normally only an issue when one or other of the relevant windows is docked.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
When I run a form, I am getting a Properties.Desktop screen that overlaps my form

I assume that you mean - when you run the Form in the Development mode. Correct?
Because in the Executable mode you should not see it.

I always Close a Form that I am developing so as to close both the Form and its associated Properties window.
NOTE - I do often find that the Screen Properties Window remains open, so I make sure to manually close it as well.

Then in the Command Window I do a
Code:
  DO FORM <whatever>
and I don't see a Properties window in the way.

Good Luck,
JRB-Bldr


 
Oops...

Instead of...
Screen Properties Window remains open

It should have been...
Desktop Properties Window remains open

Good Luck,
JRB-Bldr
 
Olaf,
You did it again! Changing the form from modal to modeless corrected my development mode problem. Mike and JRB also educated me. Many thanks to all of you.
The Senile Senior
Don
Sun City, AZ
 
Cautious about not forgetting READ EVENTS now. Not having it works within the VFP IDE during development, but compiled leads to the well known problem of the EXE finishing right after start.

Bye, Olaf.
 
Seems like no one gave you the easy way to prevent this. Unless you like to dock the Properties window with other windows, just right-click on its title bar and uncheck Dockable. Then you won't have this problem again.

Tamar
 
Yes, that works, kind of, but only because the Property Window now is not on top. Still you can't close it, while a modal form runs.

Bye, Olaf.
 
Right, but once you make the Properties window not dockable, it closes when you close the Form/Class Designer.

Tamar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top