Open (prepare preview window for display)

Top  Previous  Next

 

Open, VIRTUAL

The Open method prepares the PrintPreviewClass window for initial display. It is designed to execute on window opening events such as EVENT:OpenWindow and EVENT:GainFocus.

Implementation:

The Open method sets the window's initial size and position, enables and disables controls as needed, and sets up the specified zoom configuration.

The WindowManager.TakeWindowEvent method calls the Open method.

Example:

ThisWindow.TakeWindowEvent PROCEDURE

 CODE

 CASE EVENT()

 OF EVENT:OpenWindow

   IF ~BAND(SELF.Inited,1)

     SELF.Open

   END

 OF EVENT:GainFocus

   IF BAND(SELF.Inited,1)

     SELF.Reset

   ELSE

     SELF.Open

   END

 END

 RETURN Level:Benign

See Also:     WindowManager.TakeWindowEvent