home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 5 / DATAFILE_PDCD5.iso / utilities / l / libstore / !LibStore / Index / WimpLib / Icons < prev    next >
Encoding:
Text File  |  1993-03-13  |  2.6 KB  |  76 lines

  1. Index file for the "Icons" library:
  2.  
  3. Procedures provided:
  4.  
  5. DEFFNiconflags(str$) - this creates the values for an icons flags. The
  6. flags are provided as a string in str$, as single letters. They are as
  7. follows:
  8.  
  9. T - icon contains text
  10. S - icon is a sprites
  11. = - icon has a border
  12. H - icon is horizontally centered
  13. V - icon is vertically centered
  14. F - icon is filled
  15. A - icon contains anti-aliased text
  16. I - icon is indirected
  17. > - text is right justified
  18. D - if the icon is selected with adjust, don't cancel others in same ESG
  19. s - sprite is displayed at half size
  20. B - icon button type. This is followed by two numbers which show the type.
  21. The button types are as follows:
  22.   00 - never
  23.   01 - always
  24.   02 - click (auto-repeat)
  25.   03 - click (once only)
  26.   04 - click selects, moving pointer away deselects
  27.   05 - click selects, double-click notifies task
  28.   06 - as 3 but can drag
  29.   07 - as 4 but can drag
  30.   08 - as 5 but can drag
  31.   09 - menu icon
  32.   10 - click returns buttons*256, drag returns buttons*16, double click 
  33.   returns buttons*1
  34.   11 - radio icon
  35.   12-13 - reserved
  36.   14 - writeable, can also drag
  37.   15 - writeable
  38. G - Exclusive Selection Group (ESG). Two numbers follow this in the 
  39. same way as in B.
  40. C - icon is selected
  41. U - icon is shaded
  42. f - foreground colour. Two numbers follow this as in B.
  43. b - background colour. Two numbers follow this as in B.
  44.  
  45. DEFFNcreate_icon(x%,y%,w%,h%,flags%,title$,titleaddr%,valaddr%,length%,
  46. val$,whandle%) - this will create an icon. If title$ has more than 12
  47. characters in it, or val$ is not null, or any of titleaddr%, valaddr% or
  48. length% is more than 0, the icon will be indirected, and that flag must
  49. be set.
  50.  
  51. DEFFNindaddr(whandle%,ihandle%) - returns the indirect address of an icon.
  52.  
  53. DEFFNvaladdr(whandle%,ihandle%) - returns the validation address of an
  54. icon.
  55.  
  56. DEFPROCsetstate(whandle%,ihandle%,clear%,eor%) - changes the flags of an
  57. icon. It clears the bits set in clear% and EORs the bits with eor%.
  58.  
  59. DEFPROCnewtext(whandle%,ihandle%,text$) - changes an icons text to text$,
  60. if it is indirected.
  61.  
  62. DEFPROCnewvalid(whandle%,ihandle%,text$) - changes an icons validation
  63. string to text$, if it is indirected.
  64.  
  65. DEFFNreadicon(whandle%,ihandle%) - gives the text of an icon.
  66.  
  67. DEFPROCiconbaricon(sprname$,leftright%) - creates an icon on the iconbar.
  68. leftright% should be -1 for the right or -2 for the left side.
  69. The icon handle is placed in iconbar_handle%.
  70.  
  71. DEFPROCchange_iconbaricon(sprname$,leftright%,length%,area%) - creates
  72. an indirected icon on the iconbar. The maximum length for the name
  73. should be in length% and the sprite area in area%.
  74. The icon handle is placed in iconbar_handle% and the indirect address
  75. is stored in baraddr%.
  76.