WINDOW MAXIMIZE and WINDOW RESTORE

Suppose you wanted to enlarge a window to look at more of the data contained in the virtual screen. With the WINDOW MAXIMIZE command, you can expand the size of the window.

If you are following the exercises, the MESSAGE window is still on your screen. It has the title: My Personal Message. It also has one message in it: Let's see what happened. To see what happens with the WINDOW MAXIMIZE command, send yourself the following 10 messages (press Enter after each message):
tell * This is message 1.
tell * This is message 2.
tell * This is message 3.
tell * This is message 4.
tell * This is message 5.
tell * This is message 6.
tell * This is message 7.
tell * This is message 8.
tell * This is message 9.
tell * This is message 10.
After you scroll forward, your screen appears as shown in Figure 1.
Figure 1. Popping the MESSAGE Window
                                  Fullscreen CMS            Lines 33 - 37 of 37
                                                           Columns 1 - 79 of 81
  Ready;
  tell * This is message 9.
  Ready;
  tell * This is message 10.
  Ready;
 
 
 + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +
 $                          My Personal Messages       Lines 1 - 6 of 11  $
 $                                                  Columns 1 - 69 of 70  $
 $   15:10:45 MSG FROM VMUSER  : Let's see what happened.                 $
 $   15:32:43 MSG FROM VMUSER  : This is message 1.                       $
 $   15:32:50 MSG FROM VMUSER  : This is message 2.                       $
 $   15:32:56 MSG FROM VMUSER  : This is message 3.                       $
 $   15:33:01 MSG FROM VMUSER  : This is message 4.                       $
 $   15:33:08 MSG FROM VMUSER  : This is message 5.                       $
 + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +
 
  PF1=Help      2=Drop_Msg  3=Quit       4=Clear_Top  5=Filelist   6=Retrieve
  PF7=Backward  8=Forward   9=Rdrlist   10=Left      11=Right     12=Cmdline
  ====> _
 15:34:07  Message                     Enter a command or press a PF or PA key
Notice that the location indicator in the upper right corner of the window shows Lines 1 - 6 of 11. To see the remaining messages, you can maximize the MESSAGE window. Enter:
window maximize message
The MESSAGE window now looks like the example shown in Figure 2.
Figure 2. Maximizing a Window
                          My Personal Messages
 
   15:10:45 MSG FROM VMUSER  : Let's see what happened.
   15:32:43 MSG FROM VMUSER  : This is message 1.
   15:32:50 MSG FROM VMUSER  : This is message 2.
   15:32:56 MSG FROM VMUSER  : This is message 3.
   15:33:01 MSG FROM VMUSER  : This is message 4.
   15:33:08 MSG FROM VMUSER  : This is message 5.
   15:33:14 MSG FROM VMUSER  : This is message 6.
   15:33:20 MSG FROM VMUSER  : This is message 7.
   15:33:27 MSG FROM VMUSER  : This is message 8.
   15:33:33 MSG FROM VMUSER  : This is message 9.
   15:33:41 MSG FROM VMUSER  : This is message 10.
 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
 
 
 
 
 
 
  PF1=Help      2=Drop_Msg  3=Quit       4=Clear_Top  5=Filelist   6=Retrieve
  PF7=Backward  8=Forward   9=Rdrlist   10=Left      11=Right     12=Cmdline
  ====> _
 15:43:45                              Enter a command or press a PF or PA key

Even though the window is maximized, it does not fill the entire screen because the MESSAGE window is variable in size. It expands depending on how much data there is to display. You will notice that the window moved to the location of line 1 and column 1 on the screen and you can see all the messages.

If you maximized a window so that the window filled the entire screen, you might not be able to enter commands if the window is protected. In this instance, the WM window would be automatically displayed, and the WMPF keys and command line would be available to manipulate the window. For more information on the WM window, see Introducing Full-Screen CMS.

To return the window to its previous size and location on the screen, you can enter the WINDOW RESTORE command:
window restore message

Here is how your screen looks (the same as it was before using the WINDOW MAXIMIZE).

Figure 3. The Window after WINDOW RESTORE
                                  Fullscreen CMS            Lines 33 - 41 of 41
                                                           Columns 1 - 79 of 81
  Ready;
  tell * This is message 9.
  Ready;
  tell * This is message 10.
  Ready;
  window maximize message
  Ready;
 + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +
 $                          My Personal Messages       Lines 1 - 6 of 11  $
 $                                                  Columns 1 - 69 of 70  $
 $   15:10:45 MSG FROM VMUSER  : Let's see what happened.                 $
 $   15:32:43 MSG FROM VMUSER  : This is message 1.                       $
 $   15:32:50 MSG FROM VMUSER  : This is message 2.                       $
 $   15:32:56 MSG FROM VMUSER  : This is message 3.                       $
 $   15:33:01 MSG FROM VMUSER  : This is message 4.                       $
 $   15:33:08 MSG FROM VMUSER  : This is message 5.                       $
 + $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ +
 
  PF1=Help      2=Drop_Msg  3=Quit       4=Clear_Top  5=Filelist   6=Retrieve
  PF7=Backward  8=Forward   9=Rdrlist   10=Left      11=Right     12=Cmdline
  ====> _
 15:47:07                              Enter a command or press a PF or PA key