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

  1.  
  2. FNshell_IconGetCommand()
  3. =>    int    pointer to validation string
  4.     str    validation command
  5.   
  6. <=    str    command string
  7.  
  8. See also FNshell_IconGetValidation.
  9.  
  10. --------------------------------------------------------
  11.  
  12. PROCshell_IconSelectAll()
  13. =>    int    window handle
  14.  
  15. Selects all of the icons contained
  16. in the specified window.
  17.  
  18. --------------------------------------------------------
  19.  
  20. PROCshell_IconDeselectAll()
  21. =>    int window handle
  22.  
  23. Deselects all of the icons contained
  24. in the specified window.
  25.  
  26. --------------------------------------------------------
  27.  
  28. PROCshell_IconDelete()
  29. =>    int    window handle
  30.     int    icon handle
  31.  
  32. This call frees any memory used for indirected data
  33. and validation strings. The window area covered by
  34. the icon (including any 3D borders) is not redrawn.
  35. Use PROCshell_IconDelete2 to delete the icon and
  36. redraw the window area.
  37.  
  38. --------------------------------------------------------
  39.  
  40. PROCshell_IconDelete2()
  41. =>    int    window handle
  42.     int    icon handle
  43.  
  44. This call frees any memory used for indirected data
  45. and validation strings. The window area covered by
  46. the icon (including any 3D borders) is redrawn.
  47.  
  48. When a large number of icons are to be deleted it is
  49. better to use PROCshell_IconDelete and then redraw
  50. the window afterwards as this will be quicker.
  51.  
  52. --------------------------------------------------------
  53.  
  54. FNshell_IconMove2()
  55. =>    int    window handle
  56.     int    icon handle
  57.     int    x displacement
  58.     int    y displacement
  59.  
  60. <=    int    icon handle
  61.  
  62. Allows an icon to be moved around the window.
  63. As the icon has to be deleted and then
  64. recreated it returns the new icon handle (which
  65. should be the same as the old handle). The icon
  66. is redrawn after moving, taking account of any
  67. 3D borders.
  68.  
  69. See also FNshell_IconMove
  70.  
  71. --------------------------------------------------------
  72.  
  73. FNshell_IconMove()
  74. =>    int    window handle
  75.     int    icon handle
  76.     int    min x coord
  77.     int    min y coord
  78.     int    max x coord
  79.     int    may y coord
  80.  
  81. <=    int    icon handle
  82.  
  83. Allows the redefinition of an icon's bounding
  84. box. As the icon has to be deleted and then
  85. recreated it returns the new icon handle (which
  86. should be the same as the old handle). The icon
  87. is redrawn after resizing, taking account of any
  88. 3D borders.
  89.  
  90. --------------------------------------------------------
  91.  
  92. FNshell_IconGetData()
  93. =>    int    window handle
  94.     int    icon handle
  95.  
  96. <=    str    icon text
  97.  
  98. Should the WimpEXT module be loaded
  99. its SWIs will be used for reading icon
  100. data (this will be about twice as fast
  101. as the usual routine).
  102.  
  103. See also PROCshell_IconPutData.
  104.  
  105. --------------------------------------------------------
  106.  
  107. PROCshell_IconbarSetText()
  108. =>    int    window handle
  109.     int    icon handle
  110.     str    text under icon
  111.  
  112. From v1.41 of the library this routine now
  113. handles redraws of the icon/text correctly
  114. under RISC OS 2 and 3. Note that the icon
  115. must be wide enough to ensure that the text
  116. is redrawn (add extra 'mask' pixels to the
  117. right and left of the icon). This is because
  118. only the area of the icon bar covered by
  119. the icon itself is redrawn.
  120.  
  121. --------------------------------------------------------
  122.  
  123. PROCshell_IconPutData()
  124. =>    int    window handle
  125.     int    icon handle
  126.     str    text to insert into icon
  127.     int    redraw flag
  128.  
  129. An error is generated if the text is too
  130. long to fit in the icon.
  131.  
  132. If the text to insert is the same as the
  133. existing text then no action is taken,
  134. avoiding any flickering of the icon.
  135.  
  136. If the redraw flag is TRUE wimp poll is
  137. called immediately to update the icon
  138. contents. Note that if the window is not
  139. open (for example if you are calling this
  140. routine in a pre-open function) then the
  141. redraw flag should be FALSE as the whole
  142. window will be redrawn when it is opened.
  143.  
  144. Should the WimpEXT module be loaded
  145. its SWIs will be used for reading icon
  146. data (this will be about twice as fast
  147. as the usual routine).
  148.  
  149. --------------------------------------------------------
  150.  
  151. PROCshell_IconPutDataNow()
  152. =>
  153.     int    window handle
  154.     int    icon handle
  155.     str    text to insert into icon
  156.  
  157. An error is generated if the text is too
  158. long to fit in the icon.
  159.  
  160. This call is similar to PROCshell_IconPutData,
  161. the difference being that PROCshell_EnsurePoll
  162. is called to make sure that the icon is updated
  163. immediately. This is important if your program
  164. is performing some non multi tasking operation
  165. and you want an icon to show a status message.
  166.  
  167. --------------------------------------------------------
  168.  
  169. PROCshell_IconRedraw()
  170. =>    int    window handle
  171.     int    icon handle
  172.  
  173. Force a redraw of the screen
  174. area covered by the given icon
  175. (including any 3D borders).
  176.  
  177. --------------------------------------------------------
  178.  
  179. PROCshell_IconPutValidation()
  180. =>    int    window handle
  181.     int    icon handle
  182.     str    new validation string
  183.  
  184. See also FNshell_IconGetValidation.
  185.  
  186. --------------------------------------------------------
  187.  
  188. PROCshell_IconSelect()
  189. =>    int    window handle
  190.     int    icon handle
  191.  
  192. Make the specified icon selected.
  193.  
  194. --------------------------------------------------------
  195.  
  196. PROCshell_IconDeselect()
  197. =>    int    window handle
  198.     int    icon handle
  199.  
  200. --------------------------------------------------------
  201.  
  202. PROCshell_IconUnselectable()
  203. =>    int    window handle
  204.     int    icon handle
  205.  
  206. --------------------------------------------------------
  207.  
  208. PROCshell_IconSetBGColour()
  209. =>    int    window handle
  210.     int    icon handle
  211.     int    background colour
  212.  
  213. An error is generated if the colour
  214. number is outside the range 0-15.
  215.  
  216. See also PROCshell_IconSetFGColour.
  217.  
  218. --------------------------------------------------------
  219.  
  220. PROCshell_IconSetFGColour()
  221. =>    int    window handle
  222.     int    icon handle
  223.     int    foreground colour
  224.  
  225. An error is generated if the colour
  226. number is outside the range 0-15.
  227.  
  228. See also PROCshell_IconSetBGColour.
  229.  
  230. --------------------------------------------------------
  231.  
  232. PROCshell_IconSetButtonType()
  233. =>    int    window handle
  234.     int    icon handle
  235.     int    button type
  236.  
  237. An error is generated if the button
  238. type is outside the range 0-11,14-15.
  239.  
  240. --------------------------------------------------------
  241.  
  242. PROCshell_IconSetESG()
  243. =>    int    window handle
  244.     int    icon handle
  245.     int    Exclusive Selection Group
  246.          number
  247.  
  248. An error is generated if the esg number
  249. is outside the range 0-31.
  250.  
  251. --------------------------------------------------------
  252.  
  253. PROCshell_IconSetText()
  254. =>    int    window handle
  255.     int    icon handle
  256.     bool    state (0 to clear text bit,
  257.          non-0 to set it)
  258.  
  259. --------------------------------------------------------
  260.  
  261. PROCshell_IconSetSprite()
  262. =>    int    window handle
  263.     int    icon handle
  264.     bool    state (0 to clear sprite bit,
  265.          non-0 to set it)
  266.  
  267. --------------------------------------------------------
  268.  
  269. PROCshell_IconSetBorder()
  270. =>    int    window handle
  271.     int    icon handle
  272.     bool    sate (0 to clear border bit,
  273.          -0 to set it)
  274.  
  275. --------------------------------------------------------
  276.  
  277. PROCshell_IconSetHCentred()
  278. =>    int    window handle
  279.     int    icon handle
  280.     bool    state (0 to clear horizontally
  281.          centred bit, non-0 to set it)
  282.  
  283. --------------------------------------------------------
  284.  
  285. PROCshell_IconSetVCentred()
  286. =>    int    window handle
  287.     int    icon handle
  288.     bool    state (0 to clear vertically
  289.          centred bit, non-0 to set it)
  290.  
  291. --------------------------------------------------------
  292.  
  293. PROCshell_IconSetRightJust()
  294. =>    int    window handle
  295.     int    icon handle  
  296.     bool    state (0 to clear right justified
  297.            bit, non-0 to set it)
  298.  
  299. --------------------------------------------------------
  300.  
  301. PROCshell_IconSetLeftJust()
  302. =>    int    window handle
  303.     int    icon handle
  304.  
  305. --------------------------------------------------------
  306.  
  307. PROCshell_IconSetFilled()
  308. =>    int    window handle
  309.     int    icon handle
  310.     bool    state (0 to clear filled
  311.          bit, non-0 to set it)
  312.  
  313. --------------------------------------------------------
  314.  
  315. PROCshell_IconSetUsesOutlineFont()
  316. =>    int    window handle
  317.     int    icon handle
  318.     bool    state (0 to clear 'uses font'
  319.          bit, non 0 to set it)
  320.  
  321. Note this call does not actually change the
  322. font used by the icon. Use the routine
  323. FNshell_IconSetFont for this.
  324.  
  325. --------------------------------------------------------
  326.  
  327. PROCshell_IconSetFont()
  328. =>    int    window handle
  329.     int    icon handle
  330.     int    font handle to use
  331.  
  332. Use FNshell_Fonts_FindFont to obtain
  333. the handle of the outline font.
  334.  
  335. --------------------------------------------------------
  336.  
  337. PROCshell_CaretSetPosition()
  338. =>    int    window handle
  339.     int    icon handle
  340.     int    x offset in icon (usually -1)
  341.     int    y offset in icon (usually -1)
  342.     int    height (usually -1)
  343.     int    index
  344.  
  345. Allows the caret to be positioned within
  346. an icon. the index parameter is the
  347. number of characters before the caret.
  348.  
  349. See also PROCshell_CaretSetRight.
  350.  
  351. --------------------------------------------------------
  352.  
  353. PROCshell_CaretSetRight()
  354. =>    int    window handle
  355.     int    icon handle
  356.  
  357. Positions the caret at the right hand
  358. end of any text in the specified icon.
  359.  
  360. See also PROCshell_CaretSetPosition.
  361.  
  362. --------------------------------------------------------
  363.  
  364. PROCshell_CaretReadPosition()
  365. =>    int    window handle
  366.     int    icon   handle
  367.     int    x offset into string
  368.     int    y offset into string
  369.     int    index
  370.  
  371. All of the parameters are updated.
  372.  
  373. --------------------------------------------------------
  374.  
  375. FNshell_Iconbar()
  376. =>    int    -1 for right side of bar, -2 for left side
  377.     str    sprite name
  378.     str    text under icon
  379.     int    width of icon/text (set to maximum width
  380.           required)
  381.     str    menu name
  382.     bool    shift    flag (not implemented)
  383.     bool    ctrl    flag (not implemented)
  384.     bool    alt    flag (not implemented)
  385.  
  386. Note that if there is to be text under the icon the
  387. sprite must be in the wimp sprite area (i.e. in the
  388. !Sprites file and !Sprites22 if you have one). If there
  389. is no text under it, it can be in the Sprites and
  390. Sprites22 files. 
  391.  
  392. The shift, ctrl and alt flags are for future
  393. enhancements to the library and should be set
  394. to 0 on this release.
  395.  
  396. --------------------------------------------------------
  397.  
  398. FNshell_IconGetValidation()
  399. =>    int    window handle
  400.     int    icon handle
  401.          
  402. <=    str    validation string
  403.  
  404. See also PROCshell_IconPutValidation.
  405.  
  406. --------------------------------------------------------
  407.  
  408. FNshell_IconNewSprite()
  409. =>
  410.     int    window handle
  411.     int    icon handle
  412.     str    new sprite name
  413.     int    redraw flag
  414.  
  415. <=    int    new icon handle
  416.  
  417. --------------------------------------------------------
  418.  
  419. FNshell_IsIconSelected()
  420. =>    int    window handle
  421.     int    icon handle
  422.  
  423. <=    bool    TRUE if selected, FALSE otherwise
  424.  
  425. --------------------------------------------------------
  426.  
  427. FNshell_IconIsDraggable()
  428. =>    int    window handle
  429.     int    icon handle
  430.  
  431. <=    bool    TRUE if draggable, FALSE otherwise
  432.  
  433. --------------------------------------------------------
  434.  
  435. FNshell_IconIsWritable()
  436. =>    int    window handle
  437.     int    icon handle
  438.  
  439. <=    bool    TRUE if writable, FALSE otherwise
  440.  
  441. --------------------------------------------------------
  442.  
  443. FNshell_IconIsSprite()
  444. =>    int    window handle
  445.     int    icon handle
  446.  
  447. <=    bool    TRUE if sprite, FALSE otherwise
  448.          
  449. --------------------------------------------------------
  450.  
  451. FNshell_IconCreate()
  452. =>    int    window handle
  453.     int    min x coord of icon
  454.     int    min y coord of icon
  455.     int    width of icon
  456.     int    height of icon
  457.     int    foreground colour
  458.     int    background colour
  459.     int    icon flags
  460.     str    text to insert into icon
  461.     int    address of indirected data
  462.            (ignored when not indirected)
  463.     int    length of indirected buffer
  464.            (ignored when not indirected)
  465.     str    validation string
  466.  
  467. <=    int    handle of new icon
  468.          
  469. This routine is only used when the application
  470. needs to create icons itself rather than
  471. loading them as part of a window definition in
  472. a template.
  473.  
  474. It does not redraw the area of the window occupied
  475. by the new icon. If the window is open it may be
  476. necessary to call PROCshell_IconRedraw to update
  477. the window area covered by the icon.
  478.  
  479. --------------------------------------------------------
  480.  
  481. PROCshell_IconSet()
  482. =>    int    window handle
  483.     int    icon handle
  484.     bool    state (0 for deselected, non 0
  485.          for selected)
  486.  
  487. This call is used to select or deselect icons
  488. depending on the value of the state flag
  489.  
  490. --------------------------------------------------------
  491.  
  492. PROCshell_IconSetSelected()
  493. =>    int    window handle
  494.     int    icon handle
  495.     bool    state (0 for deselected, non 0
  496.          for selected)
  497.  
  498. This call is used to select or deselect icons
  499. depending on the value of the state flag
  500.  
  501. --------------------------------------------------------
  502.  
  503. PROCshell_IconSetUnselectable()
  504. =>    int    window handle
  505.     int    icon handle
  506.     bool    state (0 to make icon selectable,
  507.          non 0 to make it unselectable)
  508.  
  509. This call is used to make icons unselectable
  510. (i.e. greyed out) depending on the value of
  511. the state flag. If the icon contains the caret
  512. when it is made unselectable, the caret is lost.
  513.  
  514. --------------------------------------------------------
  515.  
  516. FNshell_IconResize()
  517. =>    int    window handle
  518.     int    icon handle
  519.     int    min x coord
  520.     int    min y coord
  521.     int    max x coord
  522.     int    max y coord
  523.  
  524. <=    int    icon handle
  525.  
  526. Allows the redefinition of an icon's bounding
  527. box. As the icon has to be deleted and then
  528. recreated it returns the new icon handle (which
  529. should be the same as the old handle). The icon
  530. is redrawn after resizing, taking account of any
  531. 3D borders.
  532.  
  533. --------------------------------------------------------
  534.  
  535. PROCshell_CaretPutFirstIcon()
  536. =>    int    window handle
  537.  
  538. Allows the caret to be positioned within
  539. the first writable icon in a window. If
  540. the caret is not in the window, it is
  541. placed there and if there are no writable
  542. icons no error occurs.
  543.  
  544. --------------------------------------------------------
  545.  
  546. PROCshell_CaretPutLastIcon()
  547. =>    int    window handle
  548.  
  549. Allows the caret to be positioned within
  550. the last writable icon in a window. If
  551. the caret is not in the window, or there
  552. are no writable icons no error occurs.
  553.  
  554. Note that this call does not claim the
  555. caret, i.e. the caret must already be in
  556. the window.
  557.  
  558. --------------------------------------------------------
  559.  
  560. PROCshell_CaretPutNextIcon()
  561. =>    int    window handle
  562.  
  563. Allows the caret to be positioned within
  564. the next writable icon in a window. If
  565. the caret is not in the window, or there
  566. are no writable icons no error occurs.
  567.  
  568. Note that this call does not claim the
  569. caret, i.e. the caret must already be in
  570. the window.
  571.  
  572. --------------------------------------------------------
  573.  
  574. PROCshell_CaretPutPrevIcon()
  575. =>    int    window handle
  576.  
  577. Allows the caret to be positioned within
  578. the previous writable icon in a window. If
  579. the caret is not in the window, or there
  580. are no writable icons no error occurs.
  581.  
  582. Note that this call does not claim the
  583. caret, i.e. the caret must already be in
  584. the window.
  585.  
  586. --------------------------------------------------------
  587.  
  588. FNshell_IconGetBGColour()
  589. =>    int    window handle
  590.     int    icon handle
  591.  
  592. <=    int    background colour (0-15)
  593.  
  594. See also PROCshell_IconSetBGColour.
  595.  
  596. --------------------------------------------------------
  597.  
  598. FNshell_IconGetFGColour()
  599. =>    int    window handle
  600.     int    icon handle
  601.  
  602. <=    int    foreground colour (0-15)
  603.  
  604. See also PROCshell_IconSetFGColour.
  605.  
  606. --------------------------------------------------------
  607.  
  608. FNshell_IconRadioSelection()
  609. =>    int    window handle
  610.     int    esg group (0-31)
  611.  
  612. <=    int    icon handle
  613.  
  614. Returns the handle of the radio icon which is selected
  615. in the specified esg.
  616.  
  617. --------------------------------------------------------
  618.  
  619. FNshell_IconHasCaret()
  620. =>    int    window handle
  621.     int    icon handle
  622.  
  623. <=    bool    TRUE or FALSE
  624.  
  625. --------------------------------------------------------
  626.  
  627. PROCshell_IconGetSelectedIcons()
  628. =>    int    window handle
  629.     int    esg (0-31)
  630.     int    icon selection block (updated
  631.          on return)
  632.  
  633. You must supply a heap block as the third
  634. parameter which must be large enough to
  635. contain the returned values. You need 4 bytes
  636. for each icon handle plus 4 bytes for the -1
  637. terminator.
  638.  
  639. --------------------------------------------------------
  640.  
  641. FNshell_IconGetButtonType()
  642. =>    int    window handle
  643.     int    icon handle
  644.  
  645. <=    int    button type (0-15)
  646.  
  647. --------------------------------------------------------
  648.  
  649. PROCshell_IconClearAllWritables()
  650. =>    int    window handle
  651.  
  652. Clears all the writable icons in the specified window
  653. to "". No error occurs if no writable icons are present
  654. in the window.
  655.  
  656. --------------------------------------------------------
  657.  
  658. PROCshell_IconSetAllWritables()
  659. =>    int    window handle
  660.     str    text string to place in icons
  661.  
  662. Sets all the writable icons in the specified window
  663. to the given string. No error occurs if no writable
  664. icons are present in the window.
  665.  
  666. --------------------------------------------------------
  667.  
  668. PROCshell_IconDisallowWritableDrags
  669. =>    None
  670.  
  671. Turns off the automatic handling of writable icon drags
  672. (i.e. moving, copying etc between icons) for Style
  673. Guide purists.
  674.  
  675. --------------------------------------------------------
  676.  
  677. PROCshell_IconAllowWritableDrags
  678. =>    None
  679.  
  680. Turns on the automatic handling of writable icon drags.
  681.  
  682. --------------------------------------------------------
  683.  
  684. FNshell_IconWritableDragStatus
  685. =>    None
  686.  
  687. <=    bool    TRUE if writable icon dragging is enabled,
  688.          FALSE otherwise
  689.  
  690. Default is when the application starts is TRUE.
  691.  
  692. --------------------------------------------------------
  693.  
  694. PROCshell_IconEnsureVisible()
  695. =>    int    window handle
  696.     int    icon handle
  697.  
  698. This routine tries to ensure that the icon is
  699. wholly within the visible area of the specified
  700. window by scrolling it. This is mainly of use
  701. for writable icons in that EvntShell can
  702. automatically scroll the window as the caret
  703. moves between writable icons.
  704.  
  705. --------------------------------------------------------