HTBasic Help
×
Menu
Index

Restore Screen

 
 
This attribute provides the capability to save the HTBasic screen under the dialog or widget. If RESTORE SCREEN is set  to 1, the widget management software will save a "snapshot" of the BASIC screen area where the dialog or widget will appear, with whatever graphics or text the screen area contains.
 
When the widget is destroyed or the dialog terminates, the screen area under the widget or dialog will be restored to its original appearance. If the value is set to 0, nothing is saved and the area under the dialog or widget will be black when the widget is destroyed or the dialog terminates.
 
When you set RESTORE SCREEN to 1, the MOVABLE attribute is automatically set to 0. That way, the operator will be unable to move the widget and cause the screen to be restored improperly. It is highly recommended that the RESIZABLE attribute also be set to 0.
 
                                                          NOTE
 
Because your program will use a significantly larger amount of memory when you set RESTORE SCREEN to 1, do so only when it is important to save the text or graphics that are already displayed on the screen.