ChrisRChamberlain
Programmer
Hi all
Running an app with
The issue is how to prevent the messages appearing in the _SCREEN object?
A known bug is
and is documented here, which prevents you from dumping the messages on an out of sight window.
Using VFP 9.0
also fails.
According to help, ...
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
![[pc2] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
PDFcommander.com
PDFcommander.co.uk
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]
Using VFP 9.0
Code:
[COLOR=blue]SET MESSAGE TO 0[/color]
According to help, ...
...but the messages are displayed at row 1.Help said:If nrow is 0, no messages are displayed
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] [pc2] [pc2]](/data/assets/smilies/pc2.gif)
PDFcommander.com
PDFcommander.co.uk