home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / bit / listserv / toolbl / 26 < prev    next >
Encoding:
Text File  |  1993-01-28  |  1.6 KB  |  44 lines

  1. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  2. Path: sparky!uunet!uvaarpa!darwin.sura.net!sgiblab!spool.mu.edu!howland.reston.ans.net!paladin.american.edu!auvm!MHS.UNC.EDU!BERTW.IAT
  3. Message-ID: <9301271859.AA07382@hermes.oit.unc.edu>
  4. Newsgroups: bit.listserv.toolb-l
  5. Date:         Wed, 27 Jan 1993 13:51:00 LCL
  6. Sender:       Asymetrix 'Toolbook' product discussions <TOOLB-L@UAFSYSB.BITNET>
  7. From:         BERTW <BERTW.IAT@MHS.UNC.EDU>
  8. Subject:      global change script
  9. Lines: 33
  10.  
  11. Jennifer,
  12. Here's a simple handler to allow you to look at every object on every page
  13. in a book:
  14.  
  15. to handle setActivate
  16.   step i from 1 to pageCount of this book
  17. --go through the whole book
  18.   put objects of page i into temp
  19. -- get a list of objects on page i
  20.   while temp <> NULL
  21. -- pop the list until it's empty
  22.     pop temp
  23. -pull the top item from the list of objects on the page
  24. -- initialize special variable "it" to that item e.g., "field id 3 of page
  25. id 7"
  26.       if it contains "field" -- i.e., it's a text field
  27.         set activated of it to TRUE
  28.       end if
  29.     end while
  30.   end step
  31. end setActivate
  32.  
  33. Changing the activated property is specific. Once you have a specific
  34. object (based on the conditions you evaluate - if fillColor of it is RED
  35. and name of it is "video button" - etc.) then you can do with it as you
  36. please. This sort of process can save a lot of time when you have to make
  37. changes. To be fancy, you may want to do neat things with the sysCursor so
  38. that others who use your script will know that something is happening as
  39. they search every page in a large book. Step through backgrounds instead of
  40. pages to get to background objects.
  41.  
  42. Bert Wolf IAT, UNC-CH
  43. bwolf.iat@mhs.unc.edu
  44.