home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 274.lha / Scripit_v1.0 / Docs / Window.DOC < prev    next >
Text File  |  1989-08-06  |  5KB  |  118 lines

  1.                         Scripit Window Commands
  2.                         =======================
  3.  
  4.  
  5. W MOVE      x,y
  6.  
  7.             Moves the selected window by x (Horz) and y (Vert).  Full limit
  8.             checking is implemented so that a window cannot be moved outside
  9.             the screen it is on.  If the specified x & y are not possible,
  10.             the window will move in the direction requested as much as
  11.             possible.
  12.  
  13. W MOVETO    x,y
  14.  
  15.             Moves the selected window to position x (LeftEdge) and y (TopEdge)
  16.             with full limit checking.  If the specified x,y are not possible,
  17.             the window will be placed in as near a position to the requested
  18.             position as possible.
  19.  
  20. W RESIZE    width,height
  21.  
  22.             Change the selected window's height and width by +/- the specified
  23.             width and height.  The requested parameters will be checked against
  24.             the actual screen limits as well as the window limits set by the
  25.             program owning that window.  The window will be resized as much as
  26.             possible.  (A SIZEVERIFY and/or a NEWSIZE message will be sent
  27.             if the appropriate flags were set in the window's flags.)
  28.  
  29. W RESIZETO  width,height
  30.  
  31.             Resize the selected window to a new width and height.  The
  32.             requested width/height will be checked against the actual
  33.             screen limits as well as the window limits set by the program
  34.             owning that window.  The window will be resized as much as
  35.             possible.  (A SIZEVERIFY and/or a NEWSIZE message will be sent
  36.             if the appropriate flags were set in the window's flags.)
  37.  
  38. W MAXSIZE   Expand the selected window to the maximum size possible.
  39.             I.E. to either the screen limits or the window limits whichever
  40.             is smaller.
  41.  
  42. W MINSIZE   Shrink the selected window to the minimum size possible.
  43.  
  44. W FRONT     Move the selected window to the front of all other windows.
  45.             This simulates clicking on the window's 'to front' gadget.
  46.  
  47. W BACK      Move the selected window to the back of all other windows.
  48.             This simulates clicking on the window's 'to back' gadget.
  49.  
  50. W CLOSE     Send a message to the program owning the selected window
  51.             requesting that it closes the window.  This actually simulates
  52.             clicking on the window's 'close' gadget.
  53.  
  54. W REFRESH   Send a REFRESHWINDOW message to the selected window.  This
  55.             tells the program owning the window that it needs refreshing.
  56.             It is up to that program to decide whether it wants to refresh it
  57.             or not.
  58.  
  59. W REFRESHFRAME
  60.  
  61.             Refresh the select window's frame.
  62.  
  63. W ACTIVATE  Activate the selected window.  This simulates clicking anywhere
  64.             in that window to make it receive all intuition input.
  65.             (If the window requires an ACTIVEWINDOW message, one will be
  66.             sent to it.)
  67.  
  68. W DEACTIVATE 
  69.  
  70.             Deactivate the selected window.  (If the window requires an
  71.             INACTIVEWINDOW message, one will be sent to it.)
  72.  
  73. W LIMITS    min_x min_y max_x max_y
  74.  
  75.             Change the preset limits for resizing a window to new limits.
  76.             (This might be dangerous if the program owning the window depends
  77.             on the window not being smaller or larger than a specific size.)
  78.  
  79.  
  80. Note:       In all WINDOW commands, WINDOW can be replaced with a 'W'.
  81. -----       e.g.  'WINDOW LIMITS' is the same as 'W LIMITS'.
  82.  
  83.  
  84.                         Scripit Screen Commands
  85.                         =======================
  86.  
  87.  
  88.  
  89. SC FRONT    Move the selected screen to the front of all other screens.
  90.             This simulates clicking on the screen's 'to front' gadget.
  91.  
  92. SC BACK     Move the selected screen to the back of all other screens.
  93.             This simulates clicking on the screen's 'to back' gadget.
  94.  
  95. SC FLASH    <times> <delay>
  96.  
  97.             'Flash' the selected screen once.  The optional keyword <Times>
  98.             controls how many times to flash the screen and the keyword
  99.             <Delay> controls the delay between each flash (in 1/50 seconds.)
  100.  
  101. SC MOVE     x,y
  102.  
  103.             Moves the selected screen by x,y.  This simulates dragging the
  104.             screen.  (The x drag does not work.  It is included for possible
  105.             enhancements to Intuition in the future that might allow
  106.             horizontal movements of a screen.)
  107.  
  108. SC MOVETO   x,y
  109.  
  110.             Moves the selected screen to x,y.  (read note in above command)
  111.  
  112.  
  113. Note:       In all SCREEN commands, SCREEN can be replaced with 'SC'.
  114. -----       e.g.  'SCREEN FLASH' is the same as 'SC FLASH'.
  115.  
  116.  
  117.                       Copyright 1989  Khalid Aldoseri.
  118.