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

How do you write to the bottom tray of a form? 1

Status
Not open for further replies.

PatMcLaughlin

Programmer
Dec 10, 2010
97
US
Probably a simple process, but I am a simple ...
I am needing to add text to the bottom left of the displayed form. My problem is that I have a procedure that will take 45 seconds to 3 minutes to process and I need to have something happening to keep the user from stopping the process before it completes. If I had a record count going on, they would know something is happening. I just don't know how to access the bottom tray.
 
I'm not sure what you mean by "the bottom tray".

Do you mean the status bar, that is, the strip that appears along the bottom of the main Foxpro window? If so, then you want the SET MESSAGE command. (You might need to SET STATUS BAR ON first.)

If you want the message to appear at the foot of the form (as opposed to the outer Foxpro window), then just place a label at the required position, and change its Caption property as appropriate.

One other possibility is to use a Wait window. For that, you need WAIT WINDOW ... NOWAIT.

Mike

__________________________________
Mike Lewis (Edinburgh, Scotland)

Visual FoxPro articles, tips and downloads
 
Must it be lower left corner?

Mike mentioned WAIT WINDOW, which will appear upper right. If that location suffices, and you have a lengthy process where you can't repeatedly issue WAIT WINDOW you might experiment with SET TALK WINDOW which will use the same window but put the output of SET TALK in it.
 
I knew it had to be easy! SET MESSAGE TO did exactly what I wanted it to do! Thanks again Mike!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top