How to Force Screen Repaint After CLS in Basic PDS UI Toolbox (79372)
The information in this article applies to:
- Microsoft Basic Professional Development System for MS-DOS 7.1
- Microsoft Basic Professional Development System for MS-DOS 7.0
This article was previously published under Q79372 SUMMARY
When you use the UIDEMO.BAS program to demonstrate the User Interface
(UI) Toolbox and one of your choices from a menu executes a CLS
statement, upon returning from that choice you must repaint the menu
screen. Repainting is not done automatically. You can repaint by
calling the MonoDisplay or ColorDisplay SUB procedures (Basic routines
that are part of UIDEMO.BAS) right after you return. If you perform a
CLS in one of your own programs that uses the User Interface Toolbox
routines (GENERAL.BAS, WINDOW.BAS, MOUSE.BAS, and MENU.BAS), you will
also need to refresh the screen as above.
NOTE: If you do not repaint the screen it may appear that your program
has hung, as the keyboard will not respond and the mouse will not be
visible. However, in this case, if press the ALT key, you will see
the menu bar appear at the top of the screen.
Modification Type: | Minor | Last Reviewed: | 8/16/2005 |
---|
Keywords: | KB79372 |
---|
|