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

SET MESSAGE TO 0 bug?

Status
Not open for further replies.

ChrisRChamberlain

Programmer
Mar 23, 2000
3,392
GB
Hi all

Running an app with
Code:
[COLOR=blue]SET STATUS BAR OFF
SET STATUS ON[/color]

The issue is how to prevent the messages appearing in the _SCREEN object?

A known bug is
Code:
[COLOR=blue]SET MESSAGE WINDOW [WindowName][/color]
and is documented here, which prevents you from dumping the messages on an out of sight window.

Using VFP 9.0
Code:
[COLOR=blue]SET MESSAGE TO 0[/color]
also fails.

According to help, ...
Help said:
If nrow is 0, no messages are displayed
...but the messages are displayed at row 1.


The current workaround is to add a opaque black shape to _SCREEN at runtime, size it to completely cover _SCREEN under all conditions, or alternatively resize it when _SCREEN is resized. This obliterates the status bar that appears in _SCREEN.

The .BackColor of _SCREEN is then set to black and thus no messages are seen.

The reason for this peculiar arrangement is that using modified code from Calvin Hsia's WebLog, you can create a StatusBar class based on a container, form or toolbar.

The StatusBar will display messages from the VFP menu and any other VFP control, as well as utilising other VFP controls such as graphical checkboxes, command buttons, images, progress bars etc.

What ideas, please?

TIA

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander.com
PDFcommander.co.uk
 
pamela

Thank you for your response - again unfortunately, no.

Have since adopted a more appropriate workaround using a borderless, titlebarless form with AlwaysOnBottom = .T. as a mask to hide the output to screen.

For this app, the StatusBar is based on a toolbar and this particular configuration enables the StatusBar to have both a passive and active role in the application.

FAQ184-2483 - answering getting answered.​
Chris [pc2]
PDFcommander.com
PDFcommander.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top