home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / setwin.zip / READ.ME < prev    next >
Text File  |  1994-02-20  |  3KB  |  60 lines

  1.  
  2.     One of the major deficiencies in OS/2's windowed command prompts has 
  3.     been the lack of commands to allow the window to be sized and moved 
  4.     from the command line, or batch procedures.  SetWin and SetWinPM
  5.     overcome this restriction.  Please refer to the inline documentation
  6.     for more information.
  7.     
  8.     I release this program into the public domain in the hope that this 
  9.     functionality eventually makes its way into IBM's command processor.
  10.     
  11.     ----  Maybe this will eventually make it onto Hobbes CD-ROM!!  ----
  12.     ----  That would be an honor.                                  ----        
  13.  
  14.  
  15.     Example usage:
  16.     
  17.         I use the following .CMD file when I startup an OS/2 windowed
  18.         command prompt to put the window in 40 line mode.  I start the
  19.         window minimized (setting on the session page of the notebook)
  20.         to keep it from displaying in 25 line mode first.  The .CMD file
  21.         takes care of resizing, repositioning, and finally activating 
  22.         the window.  You can specify /K xxxxxxx.CMD in the parameters
  23.         field on the program page of the notebook to start your batch
  24.         file.
  25.  
  26.     Batch file contents:
  27.     
  28.     -----------------------------------------------------------------------
  29.         @echo off
  30.         prompt $P$G
  31.         mode co80,40
  32.         setwin hide restore move 200 50 size 9999 9999 top show activate
  33.     -----------------------------------------------------------------------
  34.     
  35.     The window is started minimized, so the mode change is done without
  36.     any screen update.  The window is then hidden.  In order for the MOVE
  37.     and SIZE commands to work on the restored window, the window needs
  38.     to be restored before they are called.  If the window isn't first 
  39.     hidden, then the screen may flash during all the updates.  The window
  40.     is then made the topmost window before being made visible and then
  41.     activated (given the focus).
  42.  
  43.     Note:  Using MOVE and SIZE when the window is minimized moves and
  44.            sizes the icon.  You can also MOVE and SIZE the maximized
  45.            window.
  46.            
  47.     Note:  Attempting to size the window beyond its maximum allowed size
  48.            will cause the maximum size to be applied.  This is why I use
  49.            the 9999 9999 for the SIZE command in the example above.
  50.            
  51.     Note:  All positions and sizes are in screen pixels.  My values are
  52.            for a 1024x768 mode display.
  53.  
  54.     Michael Thompson
  55.     Graduate Software
  56.     76500,2037
  57.     
  58.     02-20-1994
  59.     
  60.