Another Scripting Question

Judy Perry jperryl at ecs.fullerton.edu
Sun May 16 18:51:42 EDT 2004


Hi again,

I am trying to simulate a message watcher-like window in a Rev
presentation stack (which is to say, I want the user to get the idea of
events/messages via a Message Watcher-like window but I don't want them
seeing the real thing as I'm just using it to show mouse messages and
don't want them overwhelmed with every idle etc.).

My script is the following:

on mouseUp
  put "mouseUp" && return after the last line of cd fld "MessageWatcher"
end mouseUp

on mouseStillDown
  put "mouseStillDown" && return after the last line of cd fld
"MessageWatcher"
end mouseStillDown

on mouseEnter
  put "mouseEnter" && return after the last line of  cd fld
"MessageWatcher"
end mouseEnter

on mouseLeave
  put "mouseLeave" && return after the last line of cd fld
"MessageWatcher"
end mouseLeave

The problem is that the first of the four messages prints in the first
line of the field.  Great -- this is not a problem.  The problem is
that the second prints on the same line as the first ("the problem"), but
all subsequent messages print on their own line.

Any ideas on this one?  The above script is for a single button that the
user is encouraged to use with the four event types scripted (and
suggested in the presentation).

Thank you as always!

Judy
"obviously never afraid to look too stupid!"





More information about the use-livecode mailing list