Kill (shut down the WindowResizeClass object)

Top  Previous  Next

 

Kill

The Kill method frees any memory allocated during the life of the object and performs any other required termination code.

Example:

OPEN(window)

Resizer.Init(AppStrategy:Surface) !initialize Resizer object

ACCEPT

 CASE EVENT()

 OF EVENT:CloseWindow             !on close window,

  Resizer.Kill                    ! shut down Resizer object

 OF EVENT:Sized                   !on sized window,

  Resizer.Resize                  ! resize & reposition controls

 END

END