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

Report Form PREVIEW and STATUSBAR

Status
Not open for further replies.

Germancho

Programmer
Jul 9, 2003
36
When I run the REPORT FORM ... PREVIEW, the STATUSBAR shows information about the cursor currently in use. For example:

SET MESSAGE TO ""
REPORT FORM MyReport PREVIEW

I want to clear the STATUSBAR line while the PREVIEW is on. How can I do that?
 

How about SET STATUS BAR OFF?

Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Thanks Mike Lewis.

The information about the cursor is still there alltought I use the SET MESSAGE TO "" before the REPORT FORM PREVIEW.
I should want to clear the STATUSBAR line message without remove it.
 
Germancho,

I've never tried this, but you could try writing a small function containing the SET MESSAGE TO "" command. Then, call that function from a field in the report header section of the report.

Mike


Mike Lewis
Edinburgh, Scotland

My Visual Foxpro web site: My Crystal Reports web site:
 
Have you tried SET MESSAGE TO "" in the init of the reports DataEnvironment?

Regards,

Mike
 
Thanks all of you.

It´s impossible to clear the STATUS BAR line without remove it. I give up. The better way is:

SET STATUS BAR OFF
REPORT FORM MyReport PREVIEW
SET STATUS BAR ON
 
Germancho,

Why not create form that matches the height and width of your status bar, set this form's AlwaysOnTop property to True, and turn off this form's border.

If this form is the same color as your status bar (I'm sure there's an API call to determine what color constant VFP uses for its status bar?) then it will hide any messages appearing underneath it.

I'm not sure of the mechanics of how one would determine the size of the VFP status bar (height), color, and font but I would be interested in seeing someone's implementation of this idea.

Malcolm
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top