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