HDTenEightyP/NetNews huggingface dataset:
Newsgroups: bit.listserv.toolb-l
Date:         Tue, 26 Jan 1993 22:04:06 CST
From:         Larry Summary <C297HUT@SEMOVM.BITNET>
Subject:      Please Help!

As a new user of Toolbook, I have a couple of questions which I'm
sure that some of you experienced users will be able to answer.
1.  How do I write a script for a book so that readers are not able
    to write in the book.  I do not want readers to be able to
    alter any of the text.  (The book has already been written.)

2.  How can I have a title page come up for ten seconds or so
    and then go to the first page of the book?


Larry Summary
Southeast Missouri State
Cape Girardeau, MO
Department of Political Science
c297hut@semovm
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 09:46:04 EST
From:         ntaylor@COSY.UOGUELPH.CA
Subject:      So many thing s to remember.

Once again I think I've forgotten one of those little tricks!
How does one easily insert a new Page 1 in a book?\
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Envelope-to: TOOLB-L@UAFSYSB.BITNET
X-VMS-To: IN%"TOOLB-L@UAFSYSB.BITNET"
MIME-version: 1.0
Content-transfer-encoding: 7BIT
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 15:38:46 -0700
From:         JHALL@ARIZVMS.BITNET
Subject:      Re: Activating text field scripts globally

Regarding a global solution to blinking cursors problem, i.e., activating
a whole bunch of scripts.

A couple ways come to mind:
If you want to activate all the field scripts on a page you could
select all [OBJECTYPE] of the page or background and set activated of
selection to true.  At least I assume this will work.  To test,
try selecting a number of fields on a page, then type in the
command window "set activated of selection to true". Or you could
include the selection of all fields in the first part of the
statement to accomplish both tasks.

Something I've mentioned before is R-Spy. A nice development tool
that among other things, lets you copy any particular attribute/s of
one object and then point and click at other objects to modify
the attribute of the target to match that of the source...kindof a
clipboard for properties.  It then becomes trivial, though still a
little time consuming to go through and point and click at each
object whose properties need to be updated to activate field.

Hope one of these helps.

=====================================================================
John R. Hall                            Voice: 602-626-7343
Biomedical Communications                 FAX: 602-626-2145
Arizona Health Sciences Center       Internet: JHALL@CCIT.ARIZONA.EDU
Tucson, AZ  85724
=====================================================================
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 13:51:00 LCL
From:         BERTW <BERTW.IAT@MHS.UNC.EDU>
Subject:      global change script

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
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 21:00:37 MST
From:         Terry Butler <TBUTLER@UALTAVM.BITNET>
Subject:      Re: Relationship between Text and Hotwords

Although the trail of this topic has gone cold, I found the question
to be of interest and immediate relevance to what I am doing with
Toolbook.  For students of French, I have an exercise with uses
a recordField with the text of a story, where numerous
words (and phrases) are hotWords.  These hotWords have the text of
a verb in its infinitive form.
  Eg in English:  I [to go] to the store after [to stop] at the bank.
The student clicks on the hotWord and is given a series of choices
through menus to develop the correct verb forms:
  Eg  went    and   stopping
Now I want to change that part of the text in the recordField to read:
        I went to the store after stopping at the bank.
I could find no way to relate the hotWord to the text of the field
which contains it except the following:

-- This script connects the text of a field with the hotwords in it.
-- It is the only way that the text of a hotword can be changed
-- under script control: it must be changed as
-- "chars x to y of text of (record)Field Z"
-- Changing the text DESTROYS the hotword: if needed, reselect and
-- recreate it.  Changing the text also changes the offsets of
-- all the hotwords FOLLOWING it: they have to be adjusted
-- by the difference in length between the new text and the old text.
-- This script takes a significant time to execute in Toolbook.
-- NB: the following script assumes that two hotwords are not
-- immediately adjacent (no space or character between them).
put the charCount(text of recordField "Text") into lastCount -- the text
put the objects of recordField "Text" into objList -- the hotwords
-- Hotwords are reported in their visible order no matter what order
-- they have been created.
 put 1 into hotWordNumber
 step i from 1 to lastCount
  select char i of (text of recordField "Text")
  if (item 5 of selectedTextState) is false then
   continue step -- the text is not in a hot word
  end if
  put i into firstChar -- first character of the hotword
  while (item 5 of selectedTextState) is true
   increment i
   select char i of (text of recordField "Text")
   -- moving through the hotword
  end while
  -- we have selected the first character after the hotword
  put (i - 1) into lastChar -- last character of the hotword
  -- The system variable offsetList stores the character
  -- offsets of this hotword.
  set item hotWordNumber of offsetList to \
     firstChar && lastChar
  increment hotWordNumber
 end step

 Any other ideas?  Any hope for something better in version 2.0?

 Terry Butler  CALL/Humanities Computing Coordinator
 University of Alberta
 TButler@VM.UCS.UALBERTA.CA
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 10:27:17 CST
From:         Joyce McGowan <JMCGOWAN@UAFSYSB.UARK.EDU>
Subject:      Toolbook Demos

We will be doing a multimedia demonstration here at the University of Arkansas
and need some Toolbook demos to show.  Does anyone have a Toolbook demo
they could ftp to me or know of a database where I can download a Toolbook
demo?  Please reply directly to me because I'm not on the list. Thanks. Joyce.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Mailer: WinNET Mail, v1.0
Newsgroups: bit.listserv.toolb-l
Date:         Mon, 25 Jan 1993 18:26:36 -0600
From:         Jeff Green <jgreen@MODEMNEWS.WIN.NET>
Subject:      Re: Setting params in Toolbook

>Try this:
>if text of recordfield ... contains "..." etc.
>Slava

Slava,

I'm trying it as I reply to you and it is not working.  Hmmm.. I
thought this would have been an easy one.

Thanks for trying!

Jeff

_________________________________________________________________________
Jeff Green, Editor                  "The Alternative Press for BBS Users"
ModemNews Magazine                   RelayNet:Jeff Green->MODEMNEWS(465)
203.359.2299 BBS                     Internet:jgreen@ModemNews.win.net
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Via: uk.ac.leeds.gps1; Tue, 26 Jan 1993 10:21:29 +0000
Priority: normal
X-Mailer: Pegasus Mail v2.3 (R4).
Newsgroups: bit.listserv.toolb-l
Date:         Tue, 26 Jan 1993 10:21:16 GMT
From:         ECL6GHS@LUCS-01.NOVELL.LEEDS.AC.UK
Subject:      Writing files

Dear all:

Writing to files.

I have an apparent problem with Toolbook using Novell.

As part of a course assessment program, I need to have students write
to a file, but be unable to see the file. Simply hiding the file
using DOS attributes will not suffice. I have attempted to do this by
having the files written to a directory on which the following rights
are set:
Write; Read; Create; Erase; Modify: i.e. omitting Filescan.

Toolbook is programmed to write to the file using the usual
CreateFile, WriteFile sequence.

The result is that Toolbook creates a file in the Directory ok, but
fails to write to it: the file is of zero length.

A Pascal program will however, write to the file OK.

Has anyone observed anything like this?

Graham Smith

University of Leeds, England.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Vmsmail-To: SMTP%"TOOLB-L@UAFSYSB.UARK.EDU"
Newsgroups: bit.listserv.toolb-l
Date:         Tue, 26 Jan 1993 23:51:02 -0600
From:         CLKREY@OA.STKATE.EDU
Subject:      RE: Writing files

Graham Smith:

I'm away from my IBM (shocking, i know) so I don't have access to my scripts,
I'll double check this in the morning...but if I recall, I used:

create filename.txt
write text of recordfield "whatever" to filename.txt
etc.
etc.

Cyndy
clkrey@oa.stkate.edu
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Envelope-to: TOOLB-L@UAFSYSB.BITNET
Content-transfer-encoding: 7BIT
Priority: normal
X-Pmrqc: 1
X-Mailer: Pegasus Mail v2.3 (R5).
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 12:47:39 +0000
From:         Timo Harmo - SocSci U of Helsinki <HARMO@VALT.HELSINKI.FI>
Subject:      RE: global change script

> While sloppy, this works very well. Only one problem: CR doesn't produce a
> carriage return in the text-- and if I use Clipboard to move the text to text
> editor, it deletes the first character following each CR.
> Is there any way to get around this?

Yes, you have to use CRLF (=cr&lf) instead of just CR.
 -Timo
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 00:57:40 EST
From:         Slava Paperno <B47@CORNELLC.BITNET>
Subject:      Re: Please Help!

If I were to give only one advice to a new ToolBook user, it would be NEVER
SET ANY PASSWORDS.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 12:30:02 EST
From:         "JENNIFER A. HEISE" <jahb@LEHIGH.EDU>
Subject:      Re: Please Help!

>Larry:  Regarding writing a script for a book that readers are not
>able to modify, there are several ways to do this.  The simplest,
>and the one I would start with, would be to go the properties menu
>of the book and define a password that must be typed in for entering
>the author mode.  The much more elegant way to handle the problem,
>once you have more time and experience, is to so modify the scripts
>and menubar so that switching to author mode is not an option--the
>switch to author mode is trapped in the scripts.

I don't think this will solve your problem.
Even in user mode only, users can type in any field unless the field has the
"Activate Scripts" property set to true. (This is obviously a _Good_Thing_,
when we are talking about interactive text fields-- "type your answer here"--
and _Not_a_Good_Thing_ if we don't want this.)

Does anybody have any scripts that could set a certain property of all the
fieldds in a book without first knowing how many fields there are and what
their names/ids are? Can this be done? Or must it be done by hand?

Jennifer Heise                           Net: jahb@lehigh.edu
Reference Dept.,                         Phone: (215) 758-3072
Fairchild-Martindale Libraries #8A,  Lehigh University, Bethlehem, PA 18015
My opinions are my own. No one else would HAVE them anyway.

"The toad beneath the harrow knows Exactly where each tooth-point goes;
The butterfly upon the road Preaches contentment to that toad."  Kipling
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Mailer: ELM [version 2.3 PL11]
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 22:24:35 -0500
From:         David Morris <dmorris@EPAS.UTORONTO.CA>
Subject:      Re: Please Help! is bad topic
              "CLKREY@OA.STKATE.EDU" at Jan 27, 93 11:02 am

To All on the list:

We had an incident in Canada last year where a professor who felt he
was being desperately and woefully wronged by faculty and
administration at his university sent out Please Help! messages to all
sorts of mailing lists, before taking violent actions against the
people in question.

Since the email subject Please Help! might connote such a letter of
desparation, and such letters topics
frighten the daylights out of me,
because of my general response to cries for help, I would like to
suggest that such letter topics be avoided. Besides, a more specific
topic, e.g. Problem with X makes scanning mail much easier.

Sincerely,

DM
--
David Morris       dmorris@epas.utoronto.ca
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Mailer: ELM [version 2.3 PL11]
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 09:39:12 PST
From:         amcelroy@SFU.CA
Subject:      Multi Media Toolbook?

Is it necessary to purchase Multi-Media Toolbook to develop multimedia
applications when there is a copy of the  regular ToolBook?
Anne McElroy
amcelroy@dfu.ca
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Tue, 26 Jan 1993 08:33:13 EST
Comments:     Converted from OV/VM to RFC822 format by PUMP V2.2N
From:         Les Slaback <SLABACK@MICF.NIST.GOV>
Subject:      info

The Feb 93 issue of PC Computing, in the Windows Secrets article, has several i
tems on Toolbook. In particular they answer one that has bugged me, how to have
 a book automatically use the full screen (ie. be maximized).
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Return-Path: <emp@xgml.com>
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 10:22:33 -0500
From:         emp%xgml.com@HARVUNXW.BITNET
Subject: Re: Opening boxes (was: Please Help!)
              27 Jan 1993 04:50:00 -0500 <9301271500.AA24
              243@talcott.harvard.edu>

   Like BERTW says, you shouldn't needlessly leave your opening box
handing around.

  Rather than put the onus on your readers to tell when they've had
enough, the better thing to do is to provide a simple "About my
application" button that will display the title page info.  Another
button lets them tell your program when they want to get back to the
main part.

  See comp.human-factors for much more on the subject (if you can).

-- Eric Promislow--emp@xgml.com--Exoterica Corporation, Ottawa, Ontario
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Tue, 26 Jan 1993 21:05:00 EST
From:         EPA100@PSUVM.PSU.EDU
Subject:      list on netnews

I remember reading a couple weeks ago about someone trying to put the list on n
etnews. Has it been done? We may not have picked it yet.

Thanks in advance

Ed
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Original_To:  JNET%"toolb-l@uafsysb"
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 14:07:00 EST
From:         JREDMON@GMUVAX.BITNET
Subject:      VideoSpigot or Vaporware?

Does anybody have videoSpigot for windows?  Word on the street is that it
won't be a while until ti is shipped because it is not working that well.
On the other hand, PC Magazine gave it high marks.  Anybody know when
Creative Labs will ship or if they are going to modify?

John Redmon
George Mason University
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Return-Path: <emp@xgml.com>
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 11:44:43 -0500
From:         emp%xgml.com@HARVUNXW.BITNET
Subject:      Changing scripts on the fly (was "Please Help!", David...)
              27 Jan 1993 12:30:02 -0500 <9
              301271807.AA26411@talcott.harvard.edu>

> From: "JENNIFER A. HEISE" <jahb@LEHIGH.EDU>

> Does anybody have any scripts that could set a certain property of all the
> fieldds in a book without first knowing how many fields there are and what
> their names/ids are? Can this be done? Or must it be done by hand?

Here's the sort of thing I do all the time.  I started testing this,
but got an Application Termination Error after the first call to
execute.

to handle protectAux theObj, theLayer
  execute "set activate of" && theObj && "of this" && theLayer
end

to handle protectFields
  step i from 1 to itemCount (backgrounds of this book)
    go first page of item i of backgrounds of this book
    step j from 1 to itemCount (objects of this background)
      conditions
      when object of item j of objects of this background is "field"
        send protectAux item j of objects of this background, "background"
      when object of item j of objects of this background is "recordField"
        send protectAux item j of objects of this background, "background"
      end conditions
    end step
  end step
  step i from 1 to pageCount of this book
    go page i of this book
    step j from 1 to itemCount (objects of this page)
      conditions
      when object of item j of objects of this page is "field"
        send protectAux item j of objects of this page, "page"
      end conditions
    end step
  end step
end protectFields

  The good thing about this technique is that you can generalize it.
Instead of calling protectAux, for example, pass in the name of some
function and execute that line.  Lisp programmers who've used mapcar
will know what I'm talking about.  For the rest of you, oh well ...

  I also have a nifty TB handler which toggles the activated of
a field/recordField just by pressing shift-ctrl right-button.
Put this in a system stack:

to handle rightButtonUp loc, isShift, isCtrl
  if isShift and isCtrl and (object of target is "field" or \
   object of target is "recordField") then
    set the activated of target to not the activated of target
  else
    forward rightButtonUp
  end if
end

-- Eric Promislow--emp@xgml.com--Exoterica Corporation, Ottawa, Ontario
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Vmsmail-To: SMTP%"TOOLB-L@UAFSYSB.UARK.EDU"
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 11:04:20 -0600
From:         CLKREY@OA.STKATE.EDU
Subject:      RE: So many thing s to remember.

ntaylor:

In HyperCard, I insert the new page 1 after the current page 1 & then cut the
current page 1 and paste it after the new page 1...don't know if it'll work
in TB or if there's an easier way.

Cyndy
clkrey@oa.stkate.edu
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 23:02:00 EST
From:         DLS128@PSUVM.BITNET
Subject:      Re: Removing scripts & VideoBlaster

>I have a question: is it possible to drive a VideoBlaster from Multimedia
>ToolBook, and if not are there any DLLs around to do it?

You might want to call the people who manufacture the VideoBlaster board
because they are the people who are supposed to make the DLL's to control
the board.  Just my 2 cents worth.

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

 David Stevens                            Bitnet:   DLS128@psuvm
 Student Programmer/Analyst               Internet: DLS128@psuvm.psu.edu
 CBEL - Computer Based Education Lab      Phone:    (814) 863-1774
 The Teaching and Learning Technologies Group    FAX:  (814) 863-7049
 Penn State University
 University Park, PA  16802
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
X-Envelope-to: TOOLB-L@UAFSYSB.BITNET
Content-transfer-encoding: 7BIT
Priority: normal
X-Pmrqc: 1
X-Mailer: Pegasus Mail v2.3 (R5).
Newsgroups: bit.listserv.toolb-l
Date:         Thu, 28 Jan 1993 13:14:20 +0000
From:         Timo Harmo - SocSci U of Helsinki <HARMO@VALT.HELSINKI.FI>
Subject:      RE: Relationship between Text and Hotwords

> a recordField with the text of a story, where numerous
> words (and phrases) are hotWords.  These hotWords have the text of

Hotwords are very inadequately handled by toolbook, let's hope
version 2 will improve their handling.

Something along following lines might help

 if the object of target is hotword
      set tloc to textfrompoint(loc)
      set locenv to characters tloc-20 to tloc+20
      --assuming hotwords are never longer than 20 chars
      --replace by something more elegant
      --this puts the text surrounding the target hotword
      --to locenv
      put offset(text of target, locenv)+tloc-20 to locstart
      -- plus or minus one maybe, these are always a drag to
      -- figure out
      put locstart+charcount(text of target) to locend
      system tarhot
      system tarloc
      set tarloc to locstart &","& locend
      set tarhot to target
    --now you have the hotword and it's location in text
    --  in memory to be used by later scripts
  end if



Another idea might be to search the hotword texts one by one
until you have found the hotword that is the target of current action
   put the objects of recordField "Text" into objList -- the hotwords
   put the target into tofind
   put 0 into lastfound
   while found is not tofind
     pop item 1 of objlist into found
     search page for text of found in recordfield "text"
       while item 5 of selectedtextstate is not ...
        .. or item 1 of selectedtext<lastfound
        -- testing that the text found is a hotword
        --and that is located after the previous hotword
         search again
       end while
      set lastfound to item 1 of selectedtextstate
  end while
  --now the selectedtext should be the text of your hotword
 -- what happens if you do:
  set the selectedtext to newtext

>  Any other ideas?  Any hope for something better in version 2.0?
These were just crude untested suggestions.
There has to be improvements in 2.0. This is the weakest part in
Toolbook in my opinion.
>
>  Terry Butler  CALL/Humanities Computing Coordinator

I'll try that also:

 Timo Harmo, U of Helsinki / Social Science Computing Coordinator
 (yes, it sounds nice)
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Newsgroups: bit.listserv.toolb-l
Date:         Wed, 27 Jan 1993 09:50:00 LCL
From:         BERTW <BERTW.IAT@MHS.UNC.EDU>
Subject:      Re: Please Help!

Remember, users who endure these ten second pauses on a regular basis will
grow to hate you as they begin to understand that they are being sentenced
to time in purgatory for the harmless act of opening your book.

If your title page contains a razzle-dazzle, ten dollar-type opening why
don't you let the reader enjoy it until he or she makes the conscious
decision to click a large red button labeled "okay enough of the demo, I
want to move on"?
Newsgroups: bit.listserv.toolb-l
From: ramirez@IASTATE.EDU (Richard G Ramirez)
Subject: When will 2.0 be out?
Reply-To: ramirez@IASTATE.EDU (Richard G Ramirez)
Organization: Iowa State University
Date: Mon, 25 Jan 1993 19:12:29 GMT

Can anyone confirm that 2.0 will be out
in a couple months?  I read it somewhere
but I haven't seen it anywhere else.

The current version is 2-3 years old.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU