home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 19 / AACD19.BIN / AACD / Programming / AWNP / AWNP-Docs / window.doc < prev   
Encoding:
Text File  |  2000-11-07  |  5.8 KB  |  221 lines

  1. The parameters defining the CA window must all be on one line terminated by a newline. The pipe will reply with 'window ok'.
  2.  
  3.  
  4. screentitle="screen title text"  (st=)
  5.  
  6.  Set the text for the screen title when CA window is active.
  7.  
  8. title="window title text"
  9.  
  10.  Set the title for the CA window.
  11.  
  12. pubscreen="Screen name"  (ps=)
  13.  
  14.  Open the CA window on a public screen
  15.  
  16. IconifyIcon (ii=)
  17.  
  18. Set the name of the icon to use when you iconify the window.
  19.  
  20. IconTitle="icon title text"  (it=)
  21.  
  22.  Set the title for the CA window when iconified.
  23.  
  24. backfill="filename"  (bf=)
  25.  
  26.  Image file to use as backfill for window. If backfill is not specified you get the default window backfill. Setting backfill="" can be used to have no backfill at all. Use this carefully as it overrides the user CA prefs.
  27.  
  28. NoBorder (NB)
  29.  
  30.  Make the window borderless.
  31.  
  32. Quiet  (q)
  33.  
  34.  Tell the pipe not to reply to the window, gadget definitions, or modify commands. This is actually a toggle switch turning replies off and on. SOME modify commands are ALWAYS replied to. (addnode and getfile selected 0|1)
  35.  
  36. NoWindow
  37.  
  38.  switch to causes no window to be opened. This will not work unless modify is set and an arexx object is defined.
  39.  
  40. NOTE: At times you may want to modify a GUI after is is created, but BEFORE the window is opened. Use the 'NoWindow' keyword in the window definition, create the GUI as usual. When you send 'open' the window does NOT open but you do go into modify mode. Modify the GUI then send 'id 0 s 64' to open the window after it has been modified.
  41.  
  42. app
  43.  
  44.  Make  this  window a application window.
  45.  
  46. activate  (a)
  47.  
  48.  Switch to activate theCA window when it opens.
  49.  
  50. depthgadget (dg)
  51.  
  52.  Switch to include a depth gadget on the CA window.
  53.  
  54. dragbar  (db)
  55.  
  56.  Switch to include a drag bar on the CA window.
  57.  
  58. closegadget (cg)
  59.  
  60.  Switch to include a close gadget on the CA window.
  61.  
  62. askclose
  63.  
  64.  Switch to stop the close gadget from actually closing the window. The close gadget will generate an 'askclose' event instead. This switch is ignored unless modify is also set.
  65.  
  66. sizegadget (sg)
  67.  
  68.  Switch to include a window size gadget on the CA window.
  69.  
  70. iconifygadget  (ig)
  71.  
  72.  Switch to include an iconify gadget on the CA window.
  73.  
  74. fullscreen    (fs)
  75. centerscreen   (cs)
  76. topleft         (tl)
  77.  
  78.  Relative position to open the CA window at. Defaults to centermouse.
  79.  
  80. top=number
  81. left=number
  82. width=umber
  83. height=number
  84.  
  85.  Position and size to open  the CA window. Using the left parameter over rides the relative positioning above.
  86.  
  87. vertical     (v)
  88.  
  89.  Switch to display gadgets vertically, defaults to horizontal.
  90.  
  91. even    (e)
  92.  
  93.  Switch to make gadgets/groups all the same size.
  94.  
  95. defaultgadgets  (defg)
  96.  
  97.  Switch to include close, depth, size, and drag gadgets on the CA window.
  98.  
  99. sendkeys  (sk)
  100.  
  101.  Switch to have the CA window return keystrokes.
  102.  
  103. sendqual  (sq)
  104.  
  105.  Switch to have the CA window send qualifier events. (see events.doc)
  106.  
  107. modify   (m)
  108.  
  109.  Switch to allow the CA window to be modified AFTER it has been opened.
  110. (See modify parameters below)
  111.  
  112. help (h)
  113.  
  114.   Switch to have the CA window return help events.
  115.  
  116. state
  117.  
  118. Switch to have the CA window return active/inactive events.
  119.  
  120. refresh
  121.  
  122. Switch to have the CA window return refresh events. This is only useful if you are doing your rendering directly into the window.
  123.  
  124. defer
  125.  
  126.  Switch to defer window layout from the input device to the pipe task. This will make input.device more responsive, and drop the (possibly quite heavy)process of recalculating the display to normal application priority instead of the priority 20 of input.device.
  127.  
  128.  It also means window refresh is blocked if you are sending modify commands to the pipe. The window refreshes AFTER you send 'continue'.
  129.  
  130. SpaceOuter (so)
  131.  
  132.  Leave a blank space outside the  root layout of the CA window.
  133.  
  134. SpaceInner  (si)
  135.  
  136.  Leave a blank space around elements in the root layout of the CA window.
  137.  
  138. fixwidth (fw)
  139.  
  140.  Do not allow the width of the window to be adjusted.
  141.  
  142. fixheight (fh)
  143.  
  144.  Do not allow the width of the window to be adjusted.
  145.  
  146. shrinkwrap (sw)
  147.  
  148.  Keep all gadgets in the window as close together as possible.
  149.  
  150. specialchar="character" (sc=)
  151.  
  152.  'Character' is a single character that replaces '|', in use as a separator inside parameters like chooserlabels, tags, penmapdata, ...
  153.  
  154. tags="tags|data[|tag|data...]|0
  155.  
  156.  A list of tag and value pairs in HEX. Do not forget the trailing null !
  157.  
  158. info
  159.  
  160.  Include the drawinfo pen array for the screen in the reply to the window definition line.
  161.  
  162.  If successful the reply is
  163.  
  164. 'ok window NUMBERofPENS PEN0 PEN1 ...'
  165.  
  166. see include:intuition/screen.h for more about drawinfo pens.
  167.  
  168.  
  169. Modify GID 0
  170. ------------
  171.  
  172. GID 0 is used to specify the GUI window itself. It can be used in modify lines to control certain aspects of the window.
  173.  
  174. selected=function_bitmap (s=)
  175. This should really have been in HEX but its not for backward compatability.
  176.  
  177. bit# decimal function
  178.  
  179. 0       1      activate window
  180. 1       2      window to front
  181. 2       4      window to back
  182. 3       8      set window title
  183. 4      16      set screen title
  184. 5      32      iconify window
  185. 6      64      uniconify (or open) window
  186. 7     128      Close window (but do not dispose)
  187. 8     256      Set busy pointer and disable window
  188. 9     512      Clear busy pointer and enable window
  189. 10   1024      window to front
  190. 11   2048      window to back
  191.  
  192. You can use more than one function at the same time. 66=uniconify and windowtofront.
  193.  
  194. gadgettext=  (gt=)
  195.  
  196.  Text for setting screen or window title.
  197.  
  198. disable=BOOL  (dis=)
  199.  
  200.  0 enables all gadgets in window.
  201.  !1 disables all gadgets
  202.  
  203. wide=num
  204. high=num
  205.  
  206.  Attempt to resize the window to the given width and/or height.Set wide=1 high=1 to get the minimum size possible.
  207.  
  208. top=num
  209. left=num
  210.  
  211.  Move the window to the given position(s).
  212.  
  213. 'ID 0 read'
  214. returns the windows 'left top width height' settings. (width and height report as 0 until you get at least 1 event back from the
  215. pipe)
  216.  
  217. refresh (ref)
  218.  
  219.  Refresh all gadgets in the window.
  220.  
  221.