home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / utilities / utilsd / evntshell / Docs / Icons < prev    next >
Encoding:
Text File  |  1995-10-14  |  17.6 KB  |  700 lines

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