home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / basic / eventshell / Docs / Windows < prev   
Encoding:
Text File  |  1996-04-11  |  13.3 KB  |  566 lines

  1. FNshell_WindowSetSpriteArea()
  2. =>    int    window handle
  3.     int    address of sprite area
  4.  
  5. <=    int    window handle
  6.  
  7. --------------------------------------------------------
  8.  
  9. PROCshell_OpenWindow()
  10. =>    int    window handle
  11.     int    full flag
  12.     int    front flag
  13.  
  14. Any panes attached to the window with
  15. PROCshell_AttachPane will be opened
  16. automatically.
  17.  
  18. --------------------------------------------------------
  19.  
  20. PROCshell_CloseWindow()
  21. =>    int    window handle
  22.  
  23. Any panes attached to the window with
  24. PROCshell_AttachPane will be closed
  25. automatically.
  26.  
  27. --------------------------------------------------------
  28.  
  29. FNshell_MessageWindow()
  30. =>    str    message text
  31.     int    cancel flag
  32.     str    program name
  33.     str    header
  34.  
  35. <=    int    result
  36.  
  37. This routine is useful for OK to quit type
  38. windows. The returned result is 1 if OK
  39. was clicked, 2 if Cancel was selected.
  40.  
  41. Cancel Flag
  42. FALSE = don't display a CANCEL icon
  43. TRUE  = message window has a CANCEL icon
  44.  
  45. Program Name
  46. Displayed in the title bar of the
  47. message window
  48.  
  49. Header
  50. When null then the title bar will read
  51. "Message from AppName". When non-null
  52. the header is displayed instead
  53.  
  54. --------------------------------------------------------
  55.  
  56. PROCshell_WindowMoveTo()
  57. =>    int    window handle to move
  58.     int    x coord to move to
  59.     int    y coord to move to
  60.  
  61. See also PROCshell_WindowMoveToIcon.
  62.  
  63. --------------------------------------------------------
  64.  
  65. PROCshell_WindowMoveToIcon()
  66. =>    int    window handle to move
  67.     int    window handle containing icon
  68.     int    icon handle
  69.     int    x offset of moved window from icon
  70.     int    y offset of moved window from icon
  71.  
  72. A problem can occur with this call if RISC OS
  73. 2 is in use. As it does not seem possible to
  74. discover the scroll offsets of the iconbar the
  75. window may nove to the wrong position. Any
  76. suggestions would be gratefully received...
  77.  
  78. See also PROCshell_WindowMoveTo.
  79.  
  80. --------------------------------------------------------
  81.  
  82. PROCshell_WindowCentreOnScreen()
  83. =>    int    window handle to move
  84.  
  85. Centres a window on the screen, checking
  86. the actual size of the screen first.
  87.  
  88. --------------------------------------------------------
  89.  
  90. PROCshell_WindowCentreOnPointer()
  91. =>    int    window handle to move
  92.  
  93. This routine attempts to centre the
  94. window on the current pointer position.
  95. It may fail to do so if the pointer is
  96. too close to the edge of the desktop
  97. and windows are not allowed to move
  98. outside the desktop.
  99.  
  100. This routine is useful in the 'PreOpen'
  101. function of a static dialog box. Dynamic
  102. dialog boxes are automatically centred
  103. on the pointer.
  104.  
  105. See also PROCshell_WindowMoveTo.
  106.  
  107. --------------------------------------------------------
  108.  
  109. PROCshell_CreateWindow()
  110. =>    str    window identifier
  111.     int    window handle (ignored on entry)
  112.  
  113. <=    int    window handle of newly created window
  114.  
  115. --------------------------------------------------------
  116.  
  117. PROCshell_OpenWindowStatic()
  118. =>    int    window handle
  119.  
  120. The window will be brought to the top
  121. of the stack by this call. The window
  122. must have been created with a call to
  123. PROCshell_CreateWindowStatic - an error
  124. will be generated if this is not the
  125. case.
  126.  
  127. Any panes attached to the window with
  128. PROCshell_AttachPane will be opened
  129. automatically.
  130.  
  131. --------------------------------------------------------
  132.  
  133. PROCshell_CreateWindowStatic()
  134. =>    str    window identifier
  135.     int    window handle (ignored on entry)
  136.  
  137. <=    int    window handle of newly created window
  138.  
  139. --------------------------------------------------------
  140.  
  141. PROCshell_WindowRetitle()
  142. =>    int    window handle (may be altered,
  143.          new value returned)
  144.     str    new title
  145.  
  146. The window handle may be changed by this
  147. routine, be sure to use the value returned
  148. when referring to the window in the future.
  149.  
  150. It is not necessary to make the window title
  151. indirected.
  152.  
  153. --------------------------------------------------------
  154.  
  155. PROCshell_WindowSetTitleRightJust()
  156. =>    int    window handle (may be altered,
  157.          new value returned)
  158.  
  159. --------------------------------------------------------
  160.  
  161. PROCshell_WindowSetTitleCentreJust
  162. =>    int    window handle (may be altered,
  163.          new value returned)
  164.  
  165. --------------------------------------------------------
  166.  
  167. PROCshell_WindowResize()
  168. =>
  169.     int    window handle
  170.     int    min x coord of workarea
  171.     int    min y coord of workarea
  172.     int    max x coord of workarea
  173.     int    max y coord of workarea
  174.     bool    open flag
  175.  
  176. --------------------------------------------------------
  177.  
  178. PROCshell_WindowBringToTop()
  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. 
  183.  
  184. It may take several wimp poll events before the
  185. window is opened, however, so you cannot assume
  186. it is actually open immediately after this call.
  187.  
  188. You can use FNshell_WindowIsOnTop to check the
  189. status of the window after this call.
  190.  
  191. --------------------------------------------------------
  192.  
  193. FNshell_WindowIsOnTop()
  194. =>    int    window handle
  195.  
  196. <=    bool    TRUE if window is on top, otherwise
  197.          FALSE
  198.  
  199. This function can be used to discover if the given
  200. window is on top of the stack (i.e. completely
  201. uncovered). It is especially useful after a call
  202. to PROCshell_WindowBringToTop as it may take
  203. several calls to Wimp_Poll before the window is
  204. brought to the top. The window may belong to another
  205. task.
  206.  
  207. --------------------------------------------------------
  208.  
  209. FNshell_WindowHasTitleBar()
  210. =>    int    window handle
  211.  
  212. <=    bool    TRUE if window has a title bar, otherwise
  213.          FALSE
  214.  
  215. --------------------------------------------------------
  216.  
  217. FNshell_WindowGetTitle()
  218. =>    int    window handle
  219.  
  220. <=    str    window title (null if no title)
  221.  
  222. --------------------------------------------------------
  223.  
  224. FNshell_WindowTitleBufferLength()
  225. =>    int    window handle
  226.  
  227. <=    int    buffer length (12 if title is not
  228.          indirected)
  229.  
  230. --------------------------------------------------------
  231.  
  232. FNshell_WindowIsMoveable()
  233. =>    int    window handle
  234.  
  235. <=    bool    TRUE if window is moveable, otherwise
  236.          FALSE
  237.  
  238. --------------------------------------------------------
  239.  
  240. FNshell_WindowIsAPane()
  241. =>    int    window handle
  242.  
  243. <=    bool    TRUE if window is a pane, otherwise
  244.          FALSE
  245.  
  246. --------------------------------------------------------
  247.  
  248. FNshell_WindowIsNotBounded()
  249. =>    int    window handle
  250.  
  251. <=    bool    TRUE if window may move outside
  252.          the screen area, otherwise FALSE
  253.  
  254. --------------------------------------------------------
  255.  
  256. FNshell_WindowTrapsHotKeys()
  257. =>    int    window handle
  258.  
  259. <=    bool    TRUE if window traps hot keys,
  260.          otherwise FALSE
  261.  
  262. --------------------------------------------------------
  263.  
  264. FNshell_WindowHasBeenToggled()
  265. =>    int    window handle
  266.  
  267. <=    bool    TRUE if window has been toggled to
  268.          full size, otherwise FALSE
  269.  
  270. --------------------------------------------------------
  271.  
  272. FNshell_WindowHasInputFocus()
  273. =>    int    window handle
  274.  
  275. <=    bool    TRUE if window has the input focus,
  276.          otherwise FALSE
  277.  
  278. --------------------------------------------------------
  279.  
  280. FNshell_WindowHasBackIcon()
  281. =>    int    window handle
  282.  
  283. <=    bool    TRUE if window has a send to back icon,
  284.          otherwise FALSE
  285.  
  286. --------------------------------------------------------
  287.  
  288. FNshell_WindowHasCloseIcon()
  289. =>    int    window handle
  290.  
  291. <=    bool    TRUE if window has a close icon,
  292.          otherwise FALSE
  293.  
  294. --------------------------------------------------------
  295.  
  296. FNshell_WindowHasToggleIcon()
  297. =>    int    window handle
  298.  
  299. <=    bool    TRUE if window has a toggle icon,
  300.          otherwise FALSE
  301.  
  302. --------------------------------------------------------
  303.  
  304. FNshell_WindowHasVScrollBar()
  305. =>    int    window handle
  306.  
  307. <=    bool    TRUE if window has a vertical scroll bar,
  308.          otherwise FALSE
  309.  
  310. --------------------------------------------------------
  311.  
  312. FNshell_WindowHasHScrollBar()
  313. =>    int    window handle
  314.  
  315. <=    bool    TRUE if window has a horizontal scroll bar,
  316.          otherwise FALSE
  317.  
  318. --------------------------------------------------------
  319.  
  320. FNshell_WindowHasAdjustSizeIcon()
  321. =>    int    window handle
  322.  
  323. <=    bool    TRUE if window has an adjust size icon,
  324.          otherwise FALSE
  325.  
  326. --------------------------------------------------------
  327.  
  328. FNshell_WindowIsOpen()
  329. =>    int    window handle
  330.  
  331. <=    bool    TRUE if window is open, otherwise
  332.          FALSE
  333.  
  334. --------------------------------------------------------
  335.  
  336. PROCshell_WindowToggleBackIcon()
  337. =>    int    window handle
  338.  
  339. <=    int    updated window handle
  340.  
  341. Adds a 'Back icon' to a window if it doesn't
  342. have one, removes it if it does. Also redisplays
  343. window in its new state if it is open.
  344.  
  345. --------------------------------------------------------
  346.  
  347. PROCshell_WindowToggleCloseIcon()
  348. =>    int    window handle
  349.  
  350. <=    int    updated window handle
  351.  
  352. Adds a 'Close icon' to a window if it doesn't
  353. have one, removes it if it does. Also redisplays
  354. window in its new state if it is open.
  355.  
  356. --------------------------------------------------------
  357.  
  358. PROCshell_WindowToggleTitleBar()
  359. =>    int    window handle
  360.  
  361. <=    int    updated window handle
  362.  
  363. Adds a Title bar to a window if it doesn't one,
  364. removes it if it does. Also redisplays window
  365. in its new state if it is open.
  366.  
  367. --------------------------------------------------------
  368.  
  369. PROCshell_WindowToggleToggleIcon()
  370. =>    int    window handle
  371.  
  372. <=    int    updated window handle
  373.  
  374. Adds a 'Toggle size icon'  to a window if it
  375. doesn't one, removes it if it does. Also
  376. redisplays window in its new state if it is
  377. open.
  378.  
  379. --------------------------------------------------------
  380.  
  381. PROCshell_WindowToggleVScrollBar()
  382. =>    int    window handle
  383.  
  384. <=    int    updated window handle
  385.  
  386. Adds a vertical scroll bar to a window if
  387. it doesn't one, removes it if it does. Also
  388. redisplays window in its new state if it is
  389. open.
  390.  
  391. --------------------------------------------------------
  392.  
  393. PROCshell_WindowToggleAdjustSizeicon()
  394. =>    int    window handle
  395.  
  396. <=    int    updated window handle
  397.  
  398. Adds a 'Adjust size icon' to a window if it
  399. doesn't one, removes it if it does. Also
  400. redisplays window in its new state if it is
  401. open.
  402.  
  403. --------------------------------------------------------
  404.  
  405. PROCshell_WindowToggleHScrollBar()
  406. =>    int    window handle
  407.  
  408. <=    int    updated window handle
  409.  
  410. Adds a horizontal scroll bar to a window if
  411. it doesn't one, removes it if it does. Also
  412. redisplays window in its new state if it is
  413. open.
  414.  
  415. --------------------------------------------------------
  416.  
  417. FNshell_WindowLoaded()
  418. =>    str    window name (max 11 characters)
  419.  
  420. <=    bool    TRUE if template is loaded, otherwise
  421.          FALSE
  422.  
  423. --------------------------------------------------------
  424.  
  425. FNshell_WindowCountIcons()
  426. =>    int    window handle
  427.  
  428. <=    int    number of icons present in the
  429.          window (including those created
  430.          after the window)
  431.  
  432. This function can be used to discover the buffer
  433. size required for a call to Wimp_GetWindowInfo.
  434.  
  435. --------------------------------------------------------
  436.  
  437. PROCshell_OpenWindowDynamic()
  438. =>    str    window identifier name
  439.     str    pre-open  function
  440.          (optional, may be "")
  441.     str    post-open function
  442.          (optional, may be "")
  443.  
  444. Clicking outside the window or pressing
  445. \<ESC> will close the window (the
  446. window is opened as a menu in fact).
  447.  
  448. Any panes attached to the window with
  449. PROCshell_AttachPane will be opened
  450. automatically.
  451.  
  452. Note that menus cannot be attached to
  453. dynamic windows as the mouse click
  454. would close it! 
  455.  
  456. User PreOpen FN (PROCshell_OpenWindowDynamic)
  457. =>    int    window handle
  458.  
  459. <=    int    ignore
  460.  
  461. User PostOpen FN (PROCshell_OpenWindowDynamic)
  462. =>    int    window handle
  463.  
  464. <=    int    ignore
  465.          
  466. --------------------------------------------------------
  467.  
  468. PROCshell_WindowSetForegroundColour()
  469. =>    int    window handle
  470.     int    wimp colour number
  471.  
  472. This routine may update the window handle
  473.  
  474. --------------------------------------------------------
  475.  
  476. PROCshell_WindowSetBackgroundColour()
  477. =>    int    window handle
  478.     int    wimp colour number
  479.  
  480. This routine may update the window handle
  481.  
  482. --------------------------------------------------------
  483.  
  484. PROCshell_WindowScrollTo()
  485. =>    int    window handle
  486.     int    x scroll offset
  487.     int    y scroll offset
  488.  
  489. Sets the scroll offsets for the specified
  490. window to the new scroll offsets. If the window
  491. is closed it is not opened by this call.
  492.  
  493. --------------------------------------------------------
  494.  
  495. PROCshell_WindowScrollBy()
  496. =>    int    window handle
  497.     int    x scroll offset to add
  498.     int    y scroll offset to add
  499.  
  500. Adds the specified scroll offsets to the current ones,
  501. effectively forcing the window to scroll by the given
  502. amounts. Useful for auto scrolling a window while dragging
  503. a selection.
  504.  
  505. If the window is closed it is not opened by this call.
  506.  
  507. --------------------------------------------------------
  508.  
  509. PROCshell_WindowSendToBack()
  510. =>    int    window handle to send to back
  511.  
  512. This routine causes a wimp message to be sent to
  513. send a window behind all the others on the screen.
  514.  
  515. It may take several wimp poll events before the
  516. window is opened, however, so you cannot assume
  517. it is actually open immediately after this call.
  518.  
  519. --------------------------------------------------------
  520.  
  521. FNshell_WindowGetTopPaneDepth()
  522. =>    int    window handle
  523.  
  524. <=    int    depth of pane in OS units (0 if no pane
  525.          attached)
  526.  
  527. --------------------------------------------------------
  528.  
  529. FNshell_WindowGetBottomPaneDepth()
  530. =>    int    window handle
  531.  
  532. <=    int    depth of pane in OS units (0 if no pane
  533.          attached)
  534.  
  535. --------------------------------------------------------
  536.  
  537. PROCshell_WindowGetPosition()
  538. =>    int    window handle
  539.     int    min x coord (OS units) updated on return
  540.     int    min y coord (OS units) updated on return
  541.     int    max x coord (OS units) updated on return
  542.     int    max y coord (OS units) updated on return
  543.  
  544. Returns the position of the window relative to the bottom
  545. left of the screen
  546.  
  547. --------------------------------------------------------
  548.  
  549. PROCshell_WindowGetCentre()
  550. =>    int    window handle
  551.     int    x coord (OS units) updated on return
  552.     int    y coord (OS units) updated on return
  553.  
  554. Returns the centre of the window's visible area relative
  555. to the bottom left of the screen
  556.  
  557. --------------------------------------------------------
  558.  
  559. FNshell_DeleteWindow()
  560. =>    int    window handle
  561.  
  562. Destroys the specified window, removing it from the
  563. screen and updating internal references stored by
  564. EvntShell
  565.  
  566. --------------------------------------------------------