User Tools

Site Tools


open_prepare_preview_window_for_display_.htm
Navigation:  ABC Library Reference > PrintPreviewClass > PrintPreviewClass Methods >====== Open (prepare preview window for display) C6H0009.jpg ====== Previous pageReturn to chapter overviewNext page

Open, VIRTUAL

blk2blue.jpg

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

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