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!

VFP7 Windows don't show in the screen, only in Taskbar 2

Status
Not open for further replies.
Update: I am able to maximize it by pressing alt+space then maximize, but when I minimize it, it hides somewhere outside the screen again, unviewable.

- gryff15 -
 
Update: I used the Move option in the Alt+space, used the arrow keys to predict where the windows got lost in the outside of the screen. Is there an option for the VFP window to not go beyond the screen and prevent from hiding?

- gryff15 -
 
Can you see the command window? If not, can you make it visible by hitting CTRL+F2? If so, try typing this into the command window:

[tt]_screen.WindowState= 2[/tt]

The above would be a temporary solution. It would be better to find out why the problem is occurring in the first place. If it is happening as soon as you launch VFP, then you probably have some sort of start-up program that is causing it, for example a [tt]COMMAND=[/tt] line in a Config.Fpw file. Check for that, and if necessary, eliminate it.

Mike


__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
gryff15 said:
Is there an option for the VFP window to not go beyond the screen and prevent from hiding?

No, as you can move windows freely, you can move the VFP _screen to a secondary display which could be turned off at next start. VFP will remember where it has to start and I think even deleting foxuser doesn't help here, but there is the screen position in the registry and in case of such an emergency you can edit that:

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualFoxPro\9.0\Desktop (7.0 in your case, of course)
Has Row for Left, Column for Top of the _Screen.

Besides that and what Mike suggests you could remember or find out how to get hand on an off display form, like you did. Then there's guessing where to move, true.

There's also a variation of Mikes idea if the command window isn't visible and also doesn't become visible with CTRL+F2:
open up an editro to write STORE 0 TO _screen.left, _Screen.top, copy that line, activate the VFP application with ALT+TAB navigation of the active processes and then paste it and ENTER. If it doesn't run, then CTRL+F2, paste and ENTER.

But I'd really not want the VFP _screen restricted to the main desktop. For presenting you use a Laptop and adjust a secondary display to the projector capabilities and don't present your laptop main display. Yes, you could, but then you either have a blurry display for yourself while presenting if your laptop display capabilities differ from the projector and you have no private display for your presentation notes or other things. you don't want to present.

Chriss
 
I think it's ok now, it remembers the windows position already though I don't know how it worked. But earlier, I also encountered when the command window itself could not be moved. I saw a subtle shadow up the screen but I could not do the same trick I did for the VFP window. Mouse pointer can only move to the edges of the monitor. But vfp windows sometimes fall to this edge cliffs.

- gryff15 -
 
It should be clear why it works now, the _screen position is remembered in the registry.

What you need to avoid is have VFP in a secondary display when closing it, especially if that secondary display is not permanent, but a projector or other external display you only have/had termporarily.

Chriss
 
This happens to me sometimes, not only with VFP. I SHIFT-Right-Click on the icon and choose "move", then using Left-Arrow until it's visible again, then press ENTER. IF "move" is disabled, then use "restore" first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top