home *** CD-ROM | disk | FTP | other *** search
- Index file for the "Icons" library:
-
- Procedures provided:
-
- DEFFNiconflags(str$) - this creates the values for an icons flags. The
- flags are provided as a string in str$, as single letters. They are as
- follows:
-
- T - icon contains text
- S - icon is a sprites
- = - icon has a border
- H - icon is horizontally centered
- V - icon is vertically centered
- F - icon is filled
- A - icon contains anti-aliased text
- I - icon is indirected
- > - text is right justified
- D - if the icon is selected with adjust, don't cancel others in same ESG
- s - sprite is displayed at half size
- B - icon button type. This is followed by two numbers which show the type.
- The button types are as follows:
- 00 - never
- 01 - always
- 02 - click (auto-repeat)
- 03 - click (once only)
- 04 - click selects, moving pointer away deselects
- 05 - click selects, double-click notifies task
- 06 - as 3 but can drag
- 07 - as 4 but can drag
- 08 - as 5 but can drag
- 09 - menu icon
- 10 - click returns buttons*256, drag returns buttons*16, double click
- returns buttons*1
- 11 - radio icon
- 12-13 - reserved
- 14 - writeable, can also drag
- 15 - writeable
- G - Exclusive Selection Group (ESG). Two numbers follow this in the
- same way as in B.
- C - icon is selected
- U - icon is shaded
- f - foreground colour. Two numbers follow this as in B.
- b - background colour. Two numbers follow this as in B.
-
- DEFFNcreate_icon(x%,y%,w%,h%,flags%,title$,titleaddr%,valaddr%,length%,
- val$,whandle%) - this will create an icon. If title$ has more than 12
- characters in it, or val$ is not null, or any of titleaddr%, valaddr% or
- length% is more than 0, the icon will be indirected, and that flag must
- be set.
-
- DEFFNindaddr(whandle%,ihandle%) - returns the indirect address of an icon.
-
- DEFFNvaladdr(whandle%,ihandle%) - returns the validation address of an
- icon.
-
- DEFPROCsetstate(whandle%,ihandle%,clear%,eor%) - changes the flags of an
- icon. It clears the bits set in clear% and EORs the bits with eor%.
-
- DEFPROCnewtext(whandle%,ihandle%,text$) - changes an icons text to text$,
- if it is indirected.
-
- DEFPROCnewvalid(whandle%,ihandle%,text$) - changes an icons validation
- string to text$, if it is indirected.
-
- DEFFNreadicon(whandle%,ihandle%) - gives the text of an icon.
-
- DEFPROCiconbaricon(sprname$,leftright%) - creates an icon on the iconbar.
- leftright% should be -1 for the right or -2 for the left side.
- The icon handle is placed in iconbar_handle%.
-
- DEFPROCchange_iconbaricon(sprname$,leftright%,length%,area%) - creates
- an indirected icon on the iconbar. The maximum length for the name
- should be in length% and the sprite area in area%.
- The icon handle is placed in iconbar_handle% and the indirect address
- is stored in baraddr%.
-