User Tools

Site Tools


restorewindow_restore_window_to_initial_size_.htm
Navigation:  ABC Library Reference > WindowResizeClass > WindowResizeClass Methods >====== RestoreWindow (restore window to initial size) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

RestoreWindow, VIRTUAL

blk2blue.jpg

The RestoreWindow method restores the window and all its controls to their sizes in effect when the Init method executed.

Example:

OPEN(window)

Resizer.Init(AppStrategy:Surface) !init Resizer overall strategy

ACCEPT

 CASE EVENT()

 OF EVENT:CloseWindow

  Resizer.Kill                    ! shut down Resizer object

 OF EVENT:Sized

  Resizer.Resize                  ! resize & reposition controls

 END

 CASE ACCEPTED()

 OF ?RestoreButton

  Resizer.RestoreWindow           !restore window to original spec

 END

END

See Also:     Init

restorewindow_restore_window_to_initial_size_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1