home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / eventshell / Docs / Windows < prev   
Encoding:
Text File  |  1993-11-14  |  11.0 KB  |  475 lines

  1. FNshell_WindowSetSpriteArea()
  2. Params =>
  3.          int window handle
  4.          int address of sprite area
  5.  
  6.        <=
  7.          int window handle
  8.  
  9. --------------------------------------------------------
  10.  
  11. PROCshell_OpenWindow()
  12. Params =>     
  13.          int window handle
  14.          int full flag
  15.          int front flag
  16.  
  17. Any panes attached to the window with
  18. PROCshell_AttachPane will be opened
  19. automatically.
  20.  
  21. --------------------------------------------------------
  22.  
  23. PROCshell_CloseWindow()
  24. Params =>
  25.          int window handle
  26.  
  27. Any panes attached to the window with
  28. PROCshell_AttachPane will be closed
  29. automatically.
  30.  
  31. --------------------------------------------------------
  32.  
  33. FNshell_MessageWindow()
  34. Params =>
  35.          str message text   
  36.          int cancel flag
  37.          str program name
  38.          str header
  39.  
  40.        <=
  41.          int result
  42.  
  43. This routine is useful for OK to quit type
  44. windows. The returned result is 1 if OK
  45. was clicked, 2 if Cancel was selected.
  46.  
  47. Cancel Flag
  48. FALSE = don't display a CANCEL icon
  49. TRUE  = message window has a CANCEL icon
  50.  
  51. Program Name
  52. Displayed in the title bar of the
  53. message window
  54.  
  55. Header
  56. When null then the title bar will read
  57. "Message from AppName". When non-null
  58. the header is displayed instead
  59.  
  60. --------------------------------------------------------
  61.  
  62. PROCshell_WindowMoveTo()
  63. Params =>
  64.          int window handle to move
  65.          int x coord to move to
  66.          int y coord to move to
  67.  
  68. See also PROCshell_WindowMoveToIcon.
  69.  
  70. --------------------------------------------------------
  71.  
  72. PROCshell_WindowMoveToIcon()
  73. Params =>
  74.          int window handle to move
  75.          int window handle containing icon
  76.          int icon handle
  77.          int x offset of moved window from icon
  78.          int y offset of moved window from icon
  79.  
  80. A problem can occur with this call if RISC OS
  81. 2 is in use. As it does not seem possible to
  82. discover the scroll offsets of the iconbar the
  83. window may nove to the wrong position. Any
  84. suggestions would be gratefully received...
  85.  
  86. See also PROCshell_WindowMoveTo.
  87.  
  88. --------------------------------------------------------
  89.  
  90. PROCshell_WindowCentreOnPointer()
  91. Params =>
  92.          int window handle to move
  93.  
  94. This routine attempts to centre the
  95. window on the current pointer position.
  96. It may fail to do so if the pointer is
  97. too close to the edge of the desktop
  98. and windows are not allowed to move
  99. outside the desktop.
  100.  
  101. This routine is useful in the 'PreOpen'
  102. function of a static dialog box. Dynamic
  103. dialog boxes are automatically centred
  104. on the pointer.
  105.  
  106. See also PROCshell_WindowMoveTo.
  107.  
  108. --------------------------------------------------------
  109.  
  110. PROCshell_CreateWindow()
  111. Params =>
  112.          str window identifier
  113.          int (ignored on entry)
  114.  
  115.        <=
  116.          int window handle of newly created window
  117.  
  118. --------------------------------------------------------
  119.  
  120. PROCshell_OpenWindowStatic()
  121. Params =>     
  122.          int window handle
  123.  
  124. The window will be brought to the top
  125. of the stack by this call. The window
  126. must have been created with a call to
  127. PROCshell_CreateWindowStatic - an error
  128. will be generated if this is not the
  129. case.
  130.  
  131. Any panes attached to the window with
  132. PROCshell_AttachPane will be opened
  133. automatically.
  134.  
  135. --------------------------------------------------------
  136.  
  137. PROCshell_CreateWindowStatic()
  138. Params =>
  139.          str window identifier
  140.          int (ignored on entry)
  141.  
  142.        <=
  143.          int window handle of newly created window
  144.  
  145. --------------------------------------------------------
  146.  
  147. PROCshell_WindowRetitle()
  148. Params =>
  149.          int window handle (may be altered,
  150.              new value returned)        
  151.          str new title
  152.  
  153. The window handle may be changed by this
  154. routine, be sure to use the value returned
  155. when referring to the window in the future.
  156.  
  157. It is not necessary to make the window title
  158. indirected, but titles longer than 11 characters
  159. will be truncated without warning if it is not.
  160.  
  161. Attempting to use a title which is longer than
  162. the allocated buffer will again cause truncation.
  163.  
  164. --------------------------------------------------------
  165.  
  166. PROCshell_WindowResize()
  167. Params =>
  168.          int  window handle
  169.          int  min x coord of workarea
  170.          int  min y coord of workarea
  171.          int  max x coord of workarea
  172.          int  max y coord of workarea
  173.          bool open flag
  174.  
  175. --------------------------------------------------------
  176.  
  177. PROCshell_WindowBringToTop()
  178. Params =>
  179.          int window handle to bring to top
  180.  
  181. This routine causes a wimp message to be sent to
  182. bring a window to the top. You cannot use this
  183. routine on windows owned by your own task, but
  184. you can use PROCshell_OpenWindow in this case.
  185.  
  186. It may take several wimp poll events before the
  187. window is opened, however, so you cannot assume
  188. it is actually open immediately after this call.
  189.  
  190. You can use FNshell_WindowIsOnTop to check the
  191. status of the window after this call.
  192.  
  193. --------------------------------------------------------
  194.  
  195. FNshell_WindowIsOnTop()
  196. Params =>
  197.          int  window handle
  198.  
  199.        <=
  200.          bool TRUE if window is on top, otherwise
  201.               FALSE
  202.  
  203. This function can be used to discover if the given
  204. window is on top of the stack (i.e. completely
  205. uncovered). It is especially useful after a call
  206. to PROCshell_WindowBringToTop as it may take
  207. several calls to Wimp_Poll before the window is
  208. brought to the top. The window may belong to another
  209. task.
  210.  
  211. --------------------------------------------------------
  212.  
  213. FNshell_WindowHasTitleBar()
  214. Params =>
  215.          int  window handle
  216.  
  217.        <=
  218.          bool TRUE if window has a title bar, otherwise
  219.               FALSE
  220.  
  221. --------------------------------------------------------
  222.  
  223. FNshell_WindowGetTitle()
  224. Params =>
  225.          int window handle
  226.  
  227.        <=
  228.          str window title (null if no title)
  229.  
  230. --------------------------------------------------------
  231.  
  232. FNshell_WindowTitleBufferLength()
  233. Params =>
  234.          int window handle
  235.  
  236.        <=
  237.          int buffer length (12 if title is not
  238.              indirected)
  239.  
  240. --------------------------------------------------------
  241.  
  242. FNshell_WindowIsMoveable()
  243. Params =>
  244.          int  window handle
  245.  
  246.        <=
  247.          bool TRUE if window is moveable, otherwise
  248.               FALSE
  249.  
  250. --------------------------------------------------------
  251.  
  252. FNshell_WindowIsAPane()
  253. Params =>
  254.          int  window handle
  255.  
  256.        <=
  257.          bool TRUE if window is a pane, otherwise
  258.               FALSE
  259.  
  260. --------------------------------------------------------
  261.  
  262. FNshell_WindowIsNotBounded()
  263. Params =>
  264.          int  window handle
  265.  
  266.        <=
  267.          bool TRUE if window may move outside
  268.               the screen area, otherwise FALSE
  269.  
  270. --------------------------------------------------------
  271.  
  272. FNshell_WindowTrapsHotKeys()
  273. Params =>
  274.          int  window handle
  275.  
  276.        <=
  277.          bool TRUE if window traps hot keys,
  278.               otherwise FALSE
  279.  
  280. --------------------------------------------------------
  281.  
  282. FNshell_WindowHasBeenToggled()
  283. Params =>
  284.          int  window handle
  285.  
  286.        <=
  287.          bool TRUE if window has been toggled to
  288.               full size, otherwise FALSE
  289.  
  290. --------------------------------------------------------
  291.  
  292. FNshell_WindowHasInputFocus()
  293. Params =>
  294.          int  window handle
  295.  
  296.        <=
  297.          bool TRUE if window has the input focus,
  298.               otherwise FALSE
  299.  
  300. --------------------------------------------------------
  301.  
  302. FNshell_WindowHasBackIcon()
  303. Params =>
  304.          int  window handle
  305.  
  306.        <=
  307.          bool TRUE if window has a send to back icon,
  308.               otherwise FALSE
  309.  
  310. --------------------------------------------------------
  311.  
  312. FNshell_WindowHasCloseIcon()
  313. Params =>
  314.          int  window handle
  315.  
  316.        <=
  317.          bool TRUE if window has a close icon,
  318.               otherwise FALSE
  319.  
  320. --------------------------------------------------------
  321.  
  322. FNshell_WindowHasToggleIcon()
  323. Params =>
  324.          int  window handle
  325.  
  326.        <=
  327.          bool TRUE if window has a toggle icon,
  328.               otherwise FALSE
  329.  
  330. --------------------------------------------------------
  331.  
  332. FNshell_WindowHasVScrollBar()
  333. Params =>
  334.          int  window handle
  335.  
  336.        <=
  337.          bool TRUE if window has a vertical scroll bar,
  338.               otherwise FALSE
  339.  
  340. --------------------------------------------------------
  341.  
  342. FNshell_WindowHasHScrollBar()
  343. Params =>
  344.          int  window handle
  345.  
  346.        <=
  347.          bool TRUE if window has a horizontal scroll bar,
  348.               otherwise FALSE
  349.  
  350. --------------------------------------------------------
  351.  
  352. FNshell_WindowHasAdjustSizeIcon()
  353. Params =>
  354.          int  window handle
  355.  
  356.        <=
  357.          bool TRUE if window has an adjust size icon,
  358.               otherwise FALSE
  359.  
  360. --------------------------------------------------------
  361.  
  362. FNshell_WindowIsOpen()
  363. Params =>
  364.          int  window handle
  365.  
  366.        <=
  367.          bool TRUE if window is open, otherwise
  368.               FALSE
  369.  
  370. --------------------------------------------------------
  371.  
  372. PROCshell_WindowToggleBackIcon()
  373. Params =>
  374.          int  window handle
  375.  
  376.        <=
  377.          int updated window handle
  378.  
  379. Adds a 'Back icon' to a window if it doesn't
  380. have one, removes it if it does. Also redisplays
  381. window in its new state if it is open.
  382.  
  383. --------------------------------------------------------
  384.  
  385. PROCshell_WindowToggleCloseIcon()
  386. Params =>
  387.          int  window handle
  388.  
  389.        <=
  390.          int updated window handle
  391.  
  392. Adds a 'Close icon' to a window if it doesn't
  393. have one, removes it if it does. Also redisplays
  394. window in its new state if it is open.
  395.  
  396. --------------------------------------------------------
  397.  
  398. PROCshell_WindowToggleTitleBar()
  399. Params =>
  400.          int  window handle
  401.  
  402.        \<=
  403.          int updated window handle
  404.  
  405. Adds a Title bar to a window if it doesn't one,
  406. removes it if it does. Also redisplays window
  407. in its new state if it is open.
  408.  
  409. --------------------------------------------------------
  410.  
  411. PROCshell_WindowToggleToggleIcon()
  412. Params =>
  413.          int  window handle
  414.  
  415.        <=
  416.          int updated window handle
  417.  
  418. Adds a 'Toggle size icon'  to a window if it
  419. doesn't one, removes it if it does. Also
  420. redisplays window in its new state if it is
  421. open.
  422.  
  423. --------------------------------------------------------
  424.  
  425. PROCshell_WindowToggleVScrollBar()
  426. Params =>
  427.          int  window handle
  428.  
  429.        <=
  430.          int updated window handle
  431.  
  432. Adds a vertical scroll bar to a window if
  433. it doesn't one, removes it if it does. Also
  434. redisplays window in its new state if it is
  435. open.
  436.  
  437. --------------------------------------------------------
  438.  
  439. PROCshell_WindowToggleAdjustSizeicon()
  440. Params =>
  441.          int  window handle
  442.  
  443.        <=
  444.          int updated window handle
  445.  
  446. Adds a 'Adjust size icon' to a window if it
  447. doesn't one, removes it if it does. Also
  448. redisplays window in its new state if it is
  449. open.
  450.  
  451. --------------------------------------------------------
  452.  
  453. PROCshell_WindowToggleHScrollBar()
  454. Params =>
  455.          int  window handle
  456.  
  457.        <=
  458.          int updated window handle
  459.  
  460. Adds a horizontal scroll bar to a window if
  461. it doesn't one, removes it if it does. Also
  462. redisplays window in its new state if it is
  463. open.
  464.  
  465. --------------------------------------------------------
  466.  
  467. FNshell_WindowLoaded()
  468. Params =>
  469.          str  window name (max 11 characters)
  470.  
  471.        <=
  472.          bool TRUE if template is loaded, otherwise
  473.               FALSE
  474.  
  475. --------------------------------------------------------