home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April A / Pcwk4a98.iso / Wtestowe / OnNet16 / QUIC_MAX.SCR < prev    next >
Text File  |  1997-01-08  |  3KB  |  85 lines

  1. *  QUIC_MAX - Relay/PC for Windows "Super Maximize/Restore" processor.
  2. *  (c) Copyright 1993 Relay Technology Inc.
  3. *
  4. *     FUNCTION:
  5. *      This script acts as a toggle to bring the user to the "Super Maximized"
  6. *      state where the following on screen features are suppressed:
  7. *       - Title Bar       - Menu Bar      - Statusline       - Tool Bar
  8. *
  9. *      If the script is run a second time for the same session, then it will
  10. *      perform its "Restore" function to put back the defaults.
  11.  
  12. *      The user can can easily alter what features are turned off during a
  13. *      Super Maximize as well as what is turned back on during the Restore
  14. *      process.
  15. *
  16. *---------------------------------------------------------------------*
  17. *                 Module History                  *
  18. *---------------------------------------------------------------------*
  19. *                                      *
  20. *  Latest Revision -                              *
  21. *                                      *
  22. *     $Revision:   1.8  $                          *
  23. *                                      *
  24. *  Modification Log -                              *
  25. *                                      *
  26. *     F0173V70 Quic_Max correction per Tom K.              *
  27. *          by JMM on 07/01/96                      *
  28. *     M0001V70 Put Relay Source Files under PVCS Control          *
  29. *          by JMM on 12/18/95                      *
  30. *                                      *
  31. *---------------------------------------------------------------------*
  32.  
  33. *     PASSED ARGUMENTS: -none-
  34.  
  35.       On Error
  36.  
  37. *
  38. *  Is this the first time QUIC_MAX has been run for this session?
  39. *
  40.       If (&$QM_Run = "&.$QM_Run") Or (&$QM_Run = "")
  41.           Then global &$QM_Run
  42.           Then &$QM_Run = FIRST
  43.  
  44. *
  45. * Check the value of &$QM_Run to see what we did last time through this script
  46. *
  47.       If (&$QM_Run = "FIRST")   Then Goto -Max
  48.       If (&$QM_Run = "MAX")     Then Goto -Restore
  49.       If (&$QM_Run = "RESTORE") Then Goto -Max
  50.       Goto -Exit
  51.  
  52. *
  53. * Do we need to remind the user how to get out of Super Maximize Mode?
  54. *
  55. -Max      Display Dialogbox OkCancel "Warning!" "Super Maximize will eliminate ALL Windows Menus. Use Alt-Spacebar to bring up menus. &CR &CR Do you wish to continue?"
  56.       If (&Retcode = 0) Then Goto -SuperMax
  57.       &$QM_Run = ""
  58.       Quiet Stop
  59.  
  60. *
  61. * The user wants to be "Super Maximized"
  62. *
  63. -SuperMax Select Menu ControlMenuMaximize
  64.       Select Menu ViewTitleBar Off
  65.       Select Menu ViewStatusLine Off
  66.       Select Menu ViewMenuBar Off
  67.       Select Menu ViewToolBar Off
  68.       &$QM_Run = MAX
  69.       Goto -Exit
  70.  
  71. *
  72. * The user wants to be "restored".  This is the default set of on screen
  73. * "objects".  The user can alter this to their preference.
  74. *
  75. -Restore  Select Menu ViewTitleBar On
  76.       Select Menu ViewStatusLine On
  77.       Select Menu ViewMenuBar On
  78.       Select Menu ViewToolBar On
  79.       Select Menu ControlMenuMinimize
  80.       Select Menu ControlMenuRestore
  81.       &$QM_Run = RESTORE
  82.       Goto -Exit
  83.  
  84. -Exit      Quiet Stop
  85.