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

Command Window does not regain focus VFP 9.0

Status
Not open for further replies.

yert33

Programmer
Feb 19, 2002
255
US
This really irks me. Maybe you can tell me how to change this:

If I have a browse window open, click into the Command window and type "disp stat" and press any key enough times to page through all the status lines, the cursor land in the browse window - not the command window from whence it came. This has caused me to start typing away think I was in the Command window and I'm typing over some field in the browse window.

I moved from 6.0 to 9.0. This was NOT the behavior of 6.0. Can someone tell me if there is a solution for this? Other than making sure my cursor is where I want it to be??

This and the annoying Task Pane Manager window at startup are the only things I can complain about in 9.0 though.

Thanks...
 
You can disable the auto-start of task pane. In the Options->Task Pane Manaager, uncheck that box that says (something like) "Start task pane when VFP starts".

The command window is a little more or a permanent change. I now habitually press CTRL-F2 before I start typing.
 
I wonder if this depends on whether the Command Window is dockable or not.

Tamar
 
I believe it does. When the command window is dockable (which is how I prefer it) it actually behaves (when not docked) independent of the VFP desktop.
 

Mike,

What I'd like to see is a simple function that would list status to a file and open that file for viewing.

How about something like this:

Code:
SET ALTERNATE TO MyFile.Txt
SET ALTERNATE ON
SET CONSOLE OFF
LIST STATUS
SET ALTERNATE OFF
SET ALTERNATE TO
SET CONSOLE ON
MODIFY FILE MyFile.Txt

I haven't tried it, but I'd guess it would work.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Mike,

LIST STATUS TO MyFile.TXT NOCONSOLE

I didn't realise you could do that. Embarrasing.

It's the delete the file after the window closes that would be tricky.

OK. Let me try again:

Code:
LIST STATUS TO MyFile.TXT NOCONSOLE
oWSH = CREATEOBJECT("wscript.shell")
oWSH.Run(FULLPATH("MyFile.Txt"), 2, .T.)
DELETE FILE MyFile.TXT

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

My Visual FoxPro site: www.ml-consult.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top