home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / eventshell / Docs / Icons < prev    next >
Encoding:
Text File  |  1993-11-14  |  13.3 KB  |  527 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. See also <PROCshell_IconPutData>.
  110.  
  111. --------------------------------------------------------
  112.  
  113. PROCshell_IconbarSetText()
  114. Params =>
  115.          int window handle     
  116.          int icon handle
  117.          str text under icon
  118.  
  119. A problem can occur with this call if RISC OS
  120. 2 is in use. As it does not seem possible to
  121. discover the scroll offsets of the iconbar the
  122. correct area of the iconbar may not be redrawn
  123. after changing the text. Any suggestions would
  124. be gratefully received...
  125.  
  126. --------------------------------------------------------
  127.  
  128. PROCshell_IconPutData()
  129. Params => 
  130.          int window handle 
  131.          int icon handle
  132.          str text to insert into icon
  133.          int redraw flag
  134.  
  135. An error is generated if the text is too
  136. long to fit in the icon.
  137.  
  138. If the text to insert is the same as the
  139. existing text then no action is taken,
  140. avoiding any flickering of the icon.
  141.  
  142. If the redraw flag is TRUE wimp poll is
  143. called immediately to update the icon
  144. contents. Note that if the window is not
  145. open (for example if you are calling this
  146. routine in a pre-open function) then the
  147. redraw flag should be FALSE as the whole
  148. window will be redrawn when it is opened.
  149.  
  150. --------------------------------------------------------
  151.  
  152. PROCshell_IconPutDataNow()
  153. Params => 
  154.          int window handle 
  155.          int icon handle
  156.          str text to insert into icon
  157.  
  158. An error is generated if the text is too
  159. long to fit in the icon.
  160.  
  161. This call is similar to PROCshell_IconPutData,
  162. the difference being that PROCshell_Ensure is
  163. called to make sure that the icon is updated
  164. immediately. This is important if your program
  165. is performing some non multi tasking operation
  166. and you want an icon to show a status message.
  167.  
  168. --------------------------------------------------------
  169.  
  170. PROCshell_IconRedraw()
  171. Params =>    
  172.          int window handle    
  173.          int icon handle
  174.  
  175. Force a redraw of the screen
  176. area covered by the given icon
  177. (including any 3D borders).
  178.  
  179. --------------------------------------------------------
  180.  
  181. PROCshell_IconPutValidation()
  182. Params =>      
  183.          int window handle      
  184.          int icon handle
  185.          str new validation string
  186.  
  187. See also FNshell_IconGetValidation.
  188.  
  189. --------------------------------------------------------
  190.  
  191. PROCshell_IconSelect()
  192. Params =>        
  193.          int window handle        
  194.          int icon handle
  195.  
  196. Make the specified icon selected.
  197.  
  198. --------------------------------------------------------
  199.  
  200. PROCshell_IconDeselect()
  201. Params =>         
  202.          int window handle         
  203.          int icon handle
  204.  
  205. --------------------------------------------------------
  206.  
  207. PROCshell_IconUnselectable()
  208. Params =>          
  209.          int window handle          
  210.          int icon handle
  211.  
  212. --------------------------------------------------------
  213.  
  214. PROCshell_IconSetBGColour()
  215. Params =>           
  216.          int window handle           
  217.          int icon handle 
  218.          int background colour
  219.  
  220. An error is generated if the colour
  221. number is outside the range 0-15.
  222.  
  223. See also PROCshell_IconSetFGColour.
  224.  
  225. --------------------------------------------------------
  226.  
  227. PROCshell_IconSetFGColour()
  228. Params =>            
  229.          int window handle            
  230.          int icon handle  
  231.          int foreground colour
  232.  
  233. An error is generated if the colour
  234. number is outside the range 0-15.
  235.  
  236. See also PROCshell_IconSetBGColour.
  237.  
  238. --------------------------------------------------------
  239.  
  240. PROCshell_IconSetButtonType()
  241. Params =>            
  242.          int window handle            
  243.          int icon handle  
  244.          int button type
  245.  
  246. An error is generated if the button
  247. type is outside the range 0-11,14-15.
  248.  
  249. --------------------------------------------------------
  250.  
  251. PROCshell_IconSetESG()
  252. Params =>            
  253.          int window handle            
  254.          int icon handle  
  255.          int Exclusive Selection Group
  256.              number
  257.  
  258. An error is generated if the esg number
  259. is outside the range 0-31.
  260.  
  261. --------------------------------------------------------
  262.  
  263. PROCshell_IconSetText()
  264. Params =>            
  265.          int  window handle            
  266.          int  icon handle  
  267.          bool state (0 to clear text bit,
  268.               non-0 to set it)
  269.  
  270. --------------------------------------------------------
  271.  
  272. PROCshell_IconSetSprite()
  273. Params =>            
  274.          int  window handle            
  275.          int  icon handle  
  276.          bool state (0 to clear sprite bit,
  277.               non-0 to set it)
  278.  
  279. --------------------------------------------------------
  280.  
  281. PROCshell_IconSetBorder()
  282. Params =>            
  283.          int  window handle            
  284.          int  icon handle  
  285.          bool state (0 to clear border bit,
  286.               non-0 to set it)
  287.  
  288. --------------------------------------------------------
  289.  
  290. PROCshell_IconSetHCentred()
  291. Params =>            
  292.          int  window handle            
  293.          int  icon handle  
  294.          bool state (0 to clear horizontally
  295.               centred bit, non-0 to set it)
  296.  
  297. --------------------------------------------------------
  298.  
  299. PROCshell_IconSetVCentred()
  300. Params =>            
  301.          int  window handle            
  302.          int  icon handle  
  303.          bool state (0 to clear vertically
  304.               centred bit, non-0 to set it)
  305.  
  306. --------------------------------------------------------
  307.  
  308. PROCshell_IconSetRightJust()
  309. Params =>            
  310.          int  window handle            
  311.          int  icon handle  
  312.          bool state (0 to clear right justified
  313.               bit, non-0 to set it)
  314.  
  315. --------------------------------------------------------
  316.  
  317. PROCshell_IconSetLeftJust()
  318. Params =>            
  319.          int  window handle            
  320.          int  icon handle  
  321.  
  322. --------------------------------------------------------
  323.  
  324. PROCshell_IconSetFilled()
  325. Params =>            
  326.          int  window handle            
  327.          int  icon handle  
  328.          bool state (0 to clear filled
  329.               bit, non-0 to set it)
  330.  
  331. --------------------------------------------------------
  332.  
  333. PROCshell_CaretSetPosition()
  334. Params =>             
  335.          int window handle             
  336.          int icon handle
  337.          int x offset in icon (usually -1)
  338.          int y offset in icon (usually -1)
  339.          int height (usually -1)
  340.          int index
  341.  
  342. Allows the caret to be positioned within
  343. an icon. the index parameter is the
  344. number of characters before the caret.
  345.  
  346. See also PROCshell_CaretSetRight.
  347.  
  348. --------------------------------------------------------
  349.  
  350. PROCshell_CaretSetRight()
  351. Params =>              
  352.          int window handle              
  353.          int icon handle
  354.  
  355. Positions the caret at the right hand
  356. end of any text in the specified icon.
  357.  
  358. See also PROCshell_CaretSetPosition.
  359.  
  360. --------------------------------------------------------
  361.  
  362. FNshell_Iconbar()
  363. Params =>
  364.          int  -1 for right side of bar, -2 for left side
  365.          str  sprite name
  366.          str  text under icon
  367.          int  width of icon/text (whichever is larger)
  368.          str  menu name
  369.          bool shift flag (not implemented)
  370.          bool ctrl  flag (not implemented)
  371.          bool alt   flag (not implemented)
  372.          str  function name
  373.  
  374. The shift, ctrl and alt flags are for future
  375. enhancements to the library and should be set
  376. to 0 on this release.
  377.  
  378. FNshell_IconGetValidation()
  379. Params =>
  380.          int window handle     
  381.          int icon handle
  382.          
  383.        <=
  384.          str validation string
  385.  
  386. See also PROCshell_IconPutValidation.
  387.  
  388. --------------------------------------------------------
  389.  
  390. FNshell_IconNewSprite()
  391. Params =>
  392.          int window handle   
  393.          int icon handle
  394.          str new sprite name
  395.          int redraw flag
  396.  
  397.        <=
  398.          int new icon handle
  399.  
  400. --------------------------------------------------------
  401.  
  402. FNshell_IsIconSelected()
  403. Params =>
  404.          int  window handle       
  405.          int  icon handle
  406.  
  407.        <=
  408.          bool TRUE if selected, FALSE otherwise
  409.  
  410. --------------------------------------------------------
  411.  
  412. FNshell_IconIsDraggable()
  413. Params =>
  414.          int  window handle       
  415.          int  icon handle
  416.  
  417.        <=
  418.          bool TRUE if draggable, FALSE otherwise
  419.  
  420. --------------------------------------------------------
  421.  
  422. FNshell_IconIsSprite()
  423. Params =>
  424.          int  window handle       
  425.          int  icon handle
  426.  
  427.        <=
  428.          bool TRUE if sprite, FALSE otherwise
  429.          
  430. --------------------------------------------------------
  431. FNshell_IconCreate()
  432. Params => 
  433.          int window handle 
  434.          int min x coord of icon
  435.          int min y coord of icon
  436.          int width of icon
  437.          int height of icon
  438.          int foreground colour
  439.          int background colour
  440.          int icon flags
  441.          str text to insert into icon
  442.          int address of indirected data
  443.              (ignored when not indirected)
  444.          int length of indirected buffer
  445.              (ignored when not indirected)
  446.          str validation string
  447.  
  448.        <=
  449.          int handle of new icon
  450.          
  451. This routine is only used when the application
  452. needs to create icons itself rather than
  453. loading them as part of a window definition in
  454. a template.
  455.  
  456. It does not redraw the area of the window occupied
  457. by the new icon. If the window is open it may be
  458. necessary to call PROCshell_IconRedraw to update
  459. the window area covered by the icon.
  460.  
  461. User FN (PROCshell_IconBar)
  462. Params => 
  463.          str text of menu selection
  464.  
  465. This function is called when the user chooses
  466. an item on the menu.
  467.  
  468. --------------------------------------------------------
  469.  
  470. PROCshell_IconSet()
  471. Params =>         
  472.          int  window handle
  473.          int  icon handle
  474.          bool state (0 for deselected, non 0
  475.               for selected)
  476.  
  477. This call is used to select or deselect icons
  478. depending on the value of the state flag
  479.  
  480. --------------------------------------------------------
  481.  
  482. PROCshell_IconSetSelected()
  483. Params =>         
  484.          int  window handle
  485.          int  icon handle
  486.          bool state (0 for deselected, non 0
  487.               for selected)
  488.  
  489. This call is used to select or deselect icons
  490. depending on the value of the state flag
  491.  
  492. --------------------------------------------------------
  493.  
  494. PROCshell_IconSetUnselectable()
  495. Params =>         
  496.          int  window handle
  497.          int  icon handle
  498.          bool state (0 to make icon selectable,
  499.               non 0 to make it unselectable)
  500.  
  501. This call is used to make icons unselectable
  502. (i.e. greyed out) depending on the value of
  503. the state flag. If the icon contains the caret
  504. when it is made unselectable, the caret is lost.
  505.  
  506. --------------------------------------------------------
  507.  
  508. FNshell_IconResize()
  509. Params =>
  510.          int window handle  
  511.          int icon handle
  512.          int min x coord
  513.          int min y coord
  514.          int max x coord
  515.          int max y coord
  516.  
  517.        <=
  518.          int icon handle
  519.  
  520. Allows the redefinition of an icon's bounding
  521. box. As the icon has to be deleted and then
  522. recreated it returns the new icon handle (which
  523. should be the same as the old handle). The icon
  524. is redrawn after resizing, taking account of any
  525. 3D borders.
  526.  
  527. --------------------------------------------------------