home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsd / evntshell / Docs / Windows < prev   
Encoding:
Text File  |  1995-10-03  |  13.6 KB  |  589 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_WindowCentreOnScreen()
  91. Params =>
  92.          int window handle to move
  93.  
  94. Centres a window on the screen, checking
  95. the actual size of the screen first.
  96.  
  97. --------------------------------------------------------
  98.  
  99. PROCshell_WindowCentreOnPointer()
  100. Params =>
  101.          int window handle to move
  102.  
  103. This routine attempts to centre the
  104. window on the current pointer position.
  105. It may fail to do so if the pointer is
  106. too close to the edge of the desktop
  107. and windows are not allowed to move
  108. outside the desktop.
  109.  
  110. This routine is useful in the 'PreOpen'
  111. function of a static dialog box. Dynamic
  112. dialog boxes are automatically centred
  113. on the pointer.
  114.  
  115. See also PROCshell_WindowMoveTo.
  116.  
  117. --------------------------------------------------------
  118.  
  119. PROCshell_CreateWindow()
  120. Params =>
  121.          str window identifier
  122.          int (ignored on entry)
  123.  
  124.        <=
  125.          int window handle of newly created window
  126.  
  127. --------------------------------------------------------
  128.  
  129. PROCshell_OpenWindowStatic()
  130. Params =>     
  131.          int window handle
  132.  
  133. The window will be brought to the top
  134. of the stack by this call. The window
  135. must have been created with a call to
  136. PROCshell_CreateWindowStatic - an error
  137. will be generated if this is not the
  138. case.
  139.  
  140. Any panes attached to the window with
  141. PROCshell_AttachPane will be opened
  142. automatically.
  143.  
  144. --------------------------------------------------------
  145.  
  146. PROCshell_CreateWindowStatic()
  147. Params =>
  148.          str window identifier
  149.          int (ignored on entry)
  150.  
  151.        <=
  152.          int window handle of newly created window
  153.  
  154. --------------------------------------------------------
  155.  
  156. PROCshell_WindowRetitle()
  157. Params =>
  158.          int window handle (may be altered,
  159.              new value returned)        
  160.          str new title
  161.  
  162. The window handle may be changed by this
  163. routine, be sure to use the value returned
  164. when referring to the window in the future.
  165.  
  166. It is not necessary to make the window title
  167. indirected.
  168.  
  169. --------------------------------------------------------
  170.  
  171. PROCshell_WindowSetTitleRightJust()
  172. Params =>
  173.          int window handle (may be altered,
  174.              new value returned)
  175.  
  176. --------------------------------------------------------
  177.  
  178. PROCshell_WindowSetTitleCentreJust
  179. Params =>
  180.          int window handle (may be altered,
  181.              new value returned)
  182.  
  183. --------------------------------------------------------
  184.  
  185. PROCshell_WindowResize()
  186. Params =>
  187.          int  window handle
  188.          int  min x coord of workarea
  189.          int  min y coord of workarea
  190.          int  max x coord of workarea
  191.          int  max y coord of workarea
  192.          bool open flag
  193.  
  194. --------------------------------------------------------
  195.  
  196. PROCshell_WindowBringToTop()
  197. Params =>
  198.          int window handle to bring to top
  199.  
  200. This routine causes a wimp message to be sent to
  201. bring a window to the top. You cannot use this
  202. routine on windows owned by your own task, but
  203. you can use PROCshell_OpenWindow in this case.
  204.  
  205. It may take several wimp poll events before the
  206. window is opened, however, so you cannot assume
  207. it is actually open immediately after this call.
  208.  
  209. You can use FNshell_WindowIsOnTop to check the
  210. status of the window after this call.
  211.  
  212. --------------------------------------------------------
  213.  
  214. FNshell_WindowIsOnTop()
  215. Params =>
  216.          int  window handle
  217.  
  218.        <=
  219.          bool TRUE if window is on top, otherwise
  220.               FALSE
  221.  
  222. This function can be used to discover if the given
  223. window is on top of the stack (i.e. completely
  224. uncovered). It is especially useful after a call
  225. to PROCshell_WindowBringToTop as it may take
  226. several calls to Wimp_Poll before the window is
  227. brought to the top. The window may belong to another
  228. task.
  229.  
  230. --------------------------------------------------------
  231.  
  232. FNshell_WindowHasTitleBar()
  233. Params =>
  234.          int  window handle
  235.  
  236.        <=
  237.          bool TRUE if window has a title bar, otherwise
  238.               FALSE
  239.  
  240. --------------------------------------------------------
  241.  
  242. FNshell_WindowGetTitle()
  243. Params =>
  244.          int window handle
  245.  
  246.        <=
  247.          str window title (null if no title)
  248.  
  249. --------------------------------------------------------
  250.  
  251. FNshell_WindowTitleBufferLength()
  252. Params =>
  253.          int window handle
  254.  
  255.        <=
  256.          int buffer length (12 if title is not
  257.              indirected)
  258.  
  259. --------------------------------------------------------
  260.  
  261. FNshell_WindowIsMoveable()
  262. Params =>
  263.          int  window handle
  264.  
  265.        <=
  266.          bool TRUE if window is moveable, otherwise
  267.               FALSE
  268.  
  269. --------------------------------------------------------
  270.  
  271. FNshell_WindowIsAPane()
  272. Params =>
  273.          int  window handle
  274.  
  275.        <=
  276.          bool TRUE if window is a pane, otherwise
  277.               FALSE
  278.  
  279. --------------------------------------------------------
  280.  
  281. FNshell_WindowIsNotBounded()
  282. Params =>
  283.          int  window handle
  284.  
  285.        <=
  286.          bool TRUE if window may move outside
  287.               the screen area, otherwise FALSE
  288.  
  289. --------------------------------------------------------
  290.  
  291. FNshell_WindowTrapsHotKeys()
  292. Params =>
  293.          int  window handle
  294.  
  295.        <=
  296.          bool TRUE if window traps hot keys,
  297.               otherwise FALSE
  298.  
  299. --------------------------------------------------------
  300.  
  301. FNshell_WindowHasBeenToggled()
  302. Params =>
  303.          int  window handle
  304.  
  305.        <=
  306.          bool TRUE if window has been toggled to
  307.               full size, otherwise FALSE
  308.  
  309. --------------------------------------------------------
  310.  
  311. FNshell_WindowHasInputFocus()
  312. Params =>
  313.          int  window handle
  314.  
  315.        <=
  316.          bool TRUE if window has the input focus,
  317.               otherwise FALSE
  318.  
  319. --------------------------------------------------------
  320.  
  321. FNshell_WindowHasBackIcon()
  322. Params =>
  323.          int  window handle
  324.  
  325.        <=
  326.          bool TRUE if window has a send to back icon,
  327.               otherwise FALSE
  328.  
  329. --------------------------------------------------------
  330.  
  331. FNshell_WindowHasCloseIcon()
  332. Params =>
  333.          int  window handle
  334.  
  335.        <=
  336.          bool TRUE if window has a close icon,
  337.               otherwise FALSE
  338.  
  339. --------------------------------------------------------
  340.  
  341. FNshell_WindowHasToggleIcon()
  342. Params =>
  343.          int  window handle
  344.  
  345.        <=
  346.          bool TRUE if window has a toggle icon,
  347.               otherwise FALSE
  348.  
  349. --------------------------------------------------------
  350.  
  351. FNshell_WindowHasVScrollBar()
  352. Params =>
  353.          int  window handle
  354.  
  355.        <=
  356.          bool TRUE if window has a vertical scroll bar,
  357.               otherwise FALSE
  358.  
  359. --------------------------------------------------------
  360.  
  361. FNshell_WindowHasHScrollBar()
  362. Params =>
  363.          int  window handle
  364.  
  365.        <=
  366.          bool TRUE if window has a horizontal scroll bar,
  367.               otherwise FALSE
  368.  
  369. --------------------------------------------------------
  370.  
  371. FNshell_WindowHasAdjustSizeIcon()
  372. Params =>
  373.          int  window handle
  374.  
  375.        <=
  376.          bool TRUE if window has an adjust size icon,
  377.               otherwise FALSE
  378.  
  379. --------------------------------------------------------
  380.  
  381. FNshell_WindowIsOpen()
  382. Params =>
  383.          int  window handle
  384.  
  385.        <=
  386.          bool TRUE if window is open, otherwise
  387.               FALSE
  388.  
  389. --------------------------------------------------------
  390.  
  391. PROCshell_WindowToggleBackIcon()
  392. Params =>
  393.          int  window handle
  394.  
  395.        <=
  396.          int updated window handle
  397.  
  398. Adds a 'Back icon' to a window if it doesn't
  399. have one, removes it if it does. Also redisplays
  400. window in its new state if it is open.
  401.  
  402. --------------------------------------------------------
  403.  
  404. PROCshell_WindowToggleCloseIcon()
  405. Params =>
  406.          int  window handle
  407.  
  408.        <=
  409.          int updated window handle
  410.  
  411. Adds a 'Close icon' to a window if it doesn't
  412. have one, removes it if it does. Also redisplays
  413. window in its new state if it is open.
  414.  
  415. --------------------------------------------------------
  416.  
  417. PROCshell_WindowToggleTitleBar()
  418. Params =>
  419.          int  window handle
  420.  
  421.        \<=
  422.          int updated window handle
  423.  
  424. Adds a Title bar to a window if it doesn't one,
  425. removes it if it does. Also redisplays window
  426. in its new state if it is open.
  427.  
  428. --------------------------------------------------------
  429.  
  430. PROCshell_WindowToggleToggleIcon()
  431. Params =>
  432.          int  window handle
  433.  
  434.        <=
  435.          int updated window handle
  436.  
  437. Adds a 'Toggle size icon'  to a window if it
  438. doesn't one, removes it if it does. Also
  439. redisplays window in its new state if it is
  440. open.
  441.  
  442. --------------------------------------------------------
  443.  
  444. PROCshell_WindowToggleVScrollBar()
  445. Params =>
  446.          int  window handle
  447.  
  448.        <=
  449.          int updated window handle
  450.  
  451. Adds a vertical scroll bar to a window if
  452. it doesn't one, removes it if it does. Also
  453. redisplays window in its new state if it is
  454. open.
  455.  
  456. --------------------------------------------------------
  457.  
  458. PROCshell_WindowToggleAdjustSizeicon()
  459. Params =>
  460.          int  window handle
  461.  
  462.        <=
  463.          int updated window handle
  464.  
  465. Adds a 'Adjust size icon' to a window if it
  466. doesn't one, removes it if it does. Also
  467. redisplays window in its new state if it is
  468. open.
  469.  
  470. --------------------------------------------------------
  471.  
  472. PROCshell_WindowToggleHScrollBar()
  473. Params =>
  474.          int  window handle
  475.  
  476.        <=
  477.          int updated window handle
  478.  
  479. Adds a horizontal scroll bar to a window if
  480. it doesn't one, removes it if it does. Also
  481. redisplays window in its new state if it is
  482. open.
  483.  
  484. --------------------------------------------------------
  485.  
  486. FNshell_WindowLoaded()
  487. Params =>
  488.          str  window name (max 11 characters)
  489.  
  490.        <=
  491.          bool TRUE if template is loaded, otherwise
  492.               FALSE
  493.  
  494. --------------------------------------------------------
  495.  
  496. FNshell_WindowCountIcons()
  497. Params =>
  498.          int  window handle
  499.  
  500.        <=
  501.          int  number of icons present in the
  502.               window (including those created
  503.               after the window)
  504.  
  505. This function can be used to discover the buffer
  506. size required for a call to Wimp_GetWindowInfo.
  507.  
  508. --------------------------------------------------------
  509.  
  510. PROCshell_OpenWindowDynamic()
  511. Params =>     
  512.          str window identifier name
  513.          str pre-open  function
  514.              (optional, may be "")
  515.          str post-open function
  516.              (optional, may be "")
  517.  
  518. Clicking outside the window or pressing
  519. \<ESC> will close the window (the
  520. window is opened as a menu in fact).
  521.  
  522. Any panes attached to the window with
  523. PROCshell_AttachPane will be opened
  524. automatically.
  525.  
  526. Note that menus cannot be attached to
  527. dynamic windows as the mouse click
  528. would close it! 
  529.  
  530. User PreOpen FN (PROCshell_OpenWindowDynamic)
  531. Params =>
  532.          int window handle
  533.  
  534.        <=
  535.          ignore
  536.  
  537. User PostOpen FN (PROCshell_OpenWindowDynamic)
  538. Params =>
  539.          int window handle
  540.  
  541.        <=
  542.          ignore
  543.          
  544. --------------------------------------------------------
  545.  
  546. PROCshell_WindowSetForegroundColour()
  547. Params =>
  548.          int window handle
  549.          int wimp colour number
  550.  
  551. This routine may update the window handle
  552.  
  553. --------------------------------------------------------
  554.  
  555. PROCshell_WindowSetBackgroundColour()
  556. Params =>
  557.          int window handle
  558.          int wimp colour number
  559.  
  560. This routine may update the window handle
  561.  
  562. --------------------------------------------------------
  563.  
  564. PROCshell_WindowScrollTo()
  565. Params =>
  566.          int window handle
  567.          int x scroll offset
  568.          int y scroll offset
  569.  
  570. Sets the scroll offsets for the specified
  571. window to the new scroll offsets. If the window
  572. is closed it is not opened by this call.
  573.  
  574. --------------------------------------------------------
  575.  
  576. PROCshell_WindowScrollBy()
  577. Params =>
  578.          int window handle
  579.          int x scroll offset to add
  580.          int y scroll offset to add
  581.  
  582. Adds the specified scroll offsets to the current ones,
  583. effectively forcing the window to scroll by the given
  584. amounts. Useful for auto scrolling a window while dragging
  585. a selection.
  586.  
  587. If the window is closed it is not opened by this call.
  588.  
  589. --------------------------------------------------------