Lightening


After I run my app. in the command window, the toolbar disappeared.

I have to click View --> ToolBars --> Standard to pull it out.

It is VFP 6.

In VFP9, you may use:

show window standard

I am thinking of changing some default setting under the tools menu.




Re: How to keep VFP standard toolbar up all the time?

dni


You may use : ACTIVATE WINDOW or DOCK command.

Code Block

IF WVISIBLE("Standard")= .F.

ACTIVATE WINDOW("Standard")

ENDIF







Re: How to keep VFP standard toolbar up all the time?

Lightening

Thanks. But hit error "Window "Standard" has not been defined."






Re: How to keep VFP standard toolbar up all the time?

dni

I tried WVISIBLE("Standard") in command winmdow in vfp 6 and if vfp 9 and is working fine. In 6 I receive .F.






Re: How to keep VFP standard toolbar up all the time?

Naomi Nosonovsky

Try

IF WEXIST('Standard')
SHOW WINDOW Standard

ENDIF

You may also check http://tek-tips.com/viewthread.cfm qid=1366155





Re: How to keep VFP standard toolbar up all the time?

dni

It should work, from vfp help:

IF WVISIBLE ("Color Palette")
DEACTIVATE WINDOW("Color Palette")
ENDIF





Re: How to keep VFP standard toolbar up all the time?

Lightening

For all your 3 lines, in my VFP, no matter Ver. 6 or Ver. 9 , the first line is always OK.

The 2nd line gives the error.

I used this as a switch, it works fine.

KEYBOARD "{ALT+V}{ENTER}{PGDN} {SPACEBAR}{Enter}"

Thank you all, although I still don't know why the 2nd line does not work.





Re: How to keep VFP standard toolbar up all the time?

Naomi Nosonovsky

Try activate window Standard





Re: How to keep VFP standard toolbar up all the time?

Lightening

That's what I said. No matter I use Acti Wind or show wind...., it returns the same error.





Re: How to keep VFP standard toolbar up all the time?

dni

You may try to delete:

HOME(7) + "foxuser.dbf"






Re: How to keep VFP standard toolbar up all the time?

Lightening

I deleted the file.

It is OK to say:

Deactivate window Standard

But NOT OK for

Activate Window Standard





Re: How to keep VFP standard toolbar up all the time?

dni

Weird...On my, computer all are working fine in version 6 with sp5 for vss, and version 9 with sp1.