[MWForum]KO's adding to scrolling text

Jeff Knope mwforum@lists.mathcats.com
Tue, 3 Aug 2004 15:03:24 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_000D_01C4796B.061B98F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi KO,

Yes, that too can be done. Try the following code lines instead of set =
"text1 "text answer in to change.text:

make "existing get "text1 "text
set "text1 "text (se :existing "  answer)

You might want to change the button instruction and the procedure name =
to add.to.text.=20

--Jeff

P.S.: I'm trying to learn how to do this more like how Daniel helps =
people, with just gentle nudges in the right direction, leaving much =
undone for some serious digging on your part. This case seemed hard to =
do that with, because of the use of some pretty obscure techniques.

One thing I foresee is if your application will have many such text =
additions, it will soon run out of vertical space to accomodate long =
bodies of text. If and when this happens, you figure out how to fix =
that, okay?


----- Original Message -----=20
From: "KO emxe" <koemxe@yahoo.com>
To: <mwforum@lists.mathcats.com>
Sent: Tuesday, August 03, 2004 12:22 PM
Subject: Re: [MWForum]KO's changing, scrolling text


> That's great! But I still have a question... could I
> do it without erasing the other text... just put more
> text in it?
> --- Jeff Knope <jknope@asis.com> wrote:
>=20
> > Hi KO -
> >=20
> > You wrote:=20
> >=20
> > Actually, I'm confused. Can you send me an example
> > of
> > what you're talking about... like a Microworlds
> > project that does just that?
> >=20
> > I assume by "just that" you are referring to my
> > reference to being able do the work "off-stage" to
> > make a seamless appearance. The attached project
> > shows how to do that.
> >=20
> > The first key to doing this is when MW is first
> > loaded, before you do anything else, you issue a
> > newprojectsize [x y] command from command center.
> > Give the project size greater than the display area.
> > In this case, I used [744 700]. This gives an the
> > "off-stage" space to work in. If you use the
> > vertical scroll bar you will discover a textbox
> > hidden under the command center. We can issue
> > commands to this textbox for it to become opaque so
> > we can write in it, then become transparent so we
> > can stamp it, etc., all under program control (in to
> > change.text).
> >=20
> > Then the snaparea command is used to move the
> > stamped text to the shapetable position that is
> > being used by the scrolling turtle, thus changing
> > the content of the scrolling text.
> >=20
> > I have no idea the context of your questions. I've
> > used a question box to provide a source for the
> > revised text. But of course, you may get the new
> > text from any source that suits your purposes.
> >=20
> > Hope this helps...
> >=20
> > Good Luck, --Jeff
> >=20
> >=20
>=20
> > ATTACHMENT part 2 application/octet-stream
> name=3Dscroll text 3.mw2
>=20
>=20
>=20
> =3D=3D=3D=3D=3D
> KO! Whew! That hurt!!!!!!!!
>=20
>=20
>=20
>=20
> _______________________________
> Do you Yahoo!?
> Express yourself with Y! Messenger! Free. Download now.=20
> http://messenger.yahoo.com
> _______________________________________________
> MWForum mailing list
> MWForum@lists.mathcats.com
> http://lists.mathcats.com/mailman/listinfo/mwforum
> Attachments archived at:
> http://www.mathcats.com/mwforum/attachments.html
> To unsubscribe or for administrative questions contact=20
> mailto:mwforum-admin@lists.mathcats.com
> 
------=_NextPart_000_000D_01C4796B.061B98F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1458" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2>Hi KO,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Yes, that too can be done. Try the =
following code=20
lines instead of <STRONG>set "text1 "text answer</STRONG> in <STRONG>to=20
change.text</STRONG>:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>make "existing get "text1=20
"text</FONT></STRONG></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>set "text1 "text (se :existing =
"&nbsp;=20
answer)</FONT></STRONG></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>You might want to change the button =
instruction and=20
the procedure name to <STRONG>add.to.text</STRONG>. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>--Jeff</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>P.S.: I'm trying to learn how to do =
this more like=20
how Daniel helps people, with just gentle nudges in the right direction, =

leaving&nbsp;much&nbsp;undone for&nbsp;some serious digging on your =
part. This=20
case seemed hard to do that with, because of the use of some pretty =
obscure=20
techniques.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>One thing I foresee is if your =
application will=20
have many such text&nbsp;additions, it will soon run out of vertical =
space to=20
accomodate long bodies of text. If and when this happens, you figure out =
how to=20
fix that, okay?</FONT></DIV>
<DIV><STRONG><FONT face=3DArial size=3D2></FONT></STRONG>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT><FONT =
size=3D2>&nbsp;</DIV></FONT>
<DIV><FONT face=3DArial size=3D2>----- Original Message ----- </FONT>
<DIV><FONT face=3DArial size=3D2>From: "KO emxe" &lt;</FONT><A=20
href=3D"mailto:koemxe@yahoo.com"><FONT face=3DArial=20
size=3D2>koemxe@yahoo.com</FONT></A><FONT face=3DArial =
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>To: &lt;</FONT><A=20
href=3D"mailto:mwforum@lists.mathcats.com"><FONT face=3DArial=20
size=3D2>mwforum@lists.mathcats.com</FONT></A><FONT face=3DArial=20
size=3D2>&gt;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Sent: Tuesday, August 03, 2004 12:22=20
PM</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Subject: Re: [MWForum]KO's changing, =
scrolling=20
text</FONT></DIV></DIV>
<DIV><FONT face=3DArial><BR><FONT size=3D2></FONT></FONT></DIV><FONT =
face=3DArial=20
size=3D2>&gt; That's great! But I still have a question... could =
I<BR>&gt; do it=20
without erasing the other text... just put more<BR>&gt; text in =
it?<BR>&gt; ---=20
Jeff Knope &lt;</FONT><A href=3D"mailto:jknope@asis.com"><FONT =
face=3DArial=20
size=3D2>jknope@asis.com</FONT></A><FONT face=3DArial size=3D2>&gt; =
wrote:<BR>&gt;=20
<BR>&gt; &gt; Hi KO -<BR>&gt; &gt; <BR>&gt; &gt; You wrote: <BR>&gt; =
&gt;=20
<BR>&gt; &gt; Actually, I'm confused. Can you send me an example<BR>&gt; =
&gt;=20
of<BR>&gt; &gt; what you're talking about... like a Microworlds<BR>&gt; =
&gt;=20
project that does just that?<BR>&gt; &gt; <BR>&gt; &gt; I assume by =
"just that"=20
you are referring to my<BR>&gt; &gt; reference to being able do the work =

"off-stage" to<BR>&gt; &gt; make a seamless appearance. The attached=20
project<BR>&gt; &gt; shows how to do that.<BR>&gt; &gt; <BR>&gt; &gt; =
The first=20
key to doing this is when MW is first<BR>&gt; &gt; loaded, before you do =

anything else, you issue a<BR>&gt; &gt; newprojectsize [x y] command =
from=20
command center.<BR>&gt; &gt; Give the project size greater than the =
display=20
area.<BR>&gt; &gt; In this case, I used [744 700]. This gives an =
the<BR>&gt;=20
&gt; "off-stage" space to work in. If you use the<BR>&gt; &gt; vertical =
scroll=20
bar you will discover a textbox<BR>&gt; &gt; hidden under the command =
center. We=20
can issue<BR>&gt; &gt; commands to this textbox for it to become opaque=20
so<BR>&gt; &gt; we can write in it, then become transparent so =
we<BR>&gt; &gt;=20
can stamp it, etc., all under program control (in to<BR>&gt; &gt;=20
change.text).<BR>&gt; &gt; <BR>&gt; &gt; Then the snaparea command is =
used to=20
move the<BR>&gt; &gt; stamped text to the shapetable position that =
is<BR>&gt;=20
&gt; being used by the scrolling turtle, thus changing<BR>&gt; &gt; the =
content=20
of the scrolling text.<BR>&gt; &gt; <BR>&gt; &gt; I have no idea the =
context of=20
your questions. I've<BR>&gt; &gt; used a question box to provide a =
source for=20
the<BR>&gt; &gt; revised text. But of course, you may get the =
new<BR>&gt; &gt;=20
text from any source that suits your purposes.<BR>&gt; &gt; <BR>&gt; =
&gt; Hope=20
this helps...<BR>&gt; &gt; <BR>&gt; &gt; Good Luck, --Jeff<BR>&gt; &gt; =
<BR>&gt;=20
&gt; <BR>&gt; <BR>&gt; &gt; ATTACHMENT part 2 =
application/octet-stream<BR>&gt;=20
name=3Dscroll text 3.mw2<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; =
=3D=3D=3D=3D=3D<BR>&gt; KO!=20
Whew! That hurt!!!!!!!!<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt;=20
_______________________________<BR>&gt; Do you Yahoo!?<BR>&gt; Express =
yourself=20
with Y! Messenger! Free. Download now. <BR>&gt; </FONT><A=20
href=3D"http://messenger.yahoo.com"><FONT face=3DArial=20
size=3D2>http://messenger.yahoo.com</FONT></A><BR><FONT face=3DArial =
size=3D2>&gt;=20
_______________________________________________<BR>&gt; MWForum mailing=20
list<BR>&gt; </FONT><A href=3D"mailto:MWForum@lists.mathcats.com"><FONT =
face=3DArial=20
size=3D2>MWForum@lists.mathcats.com</FONT></A><BR><FONT face=3DArial =
size=3D2>&gt;=20
</FONT><A =
href=3D"http://lists.mathcats.com/mailman/listinfo/mwforum"><FONT=20
face=3DArial=20
size=3D2>http://lists.mathcats.com/mailman/listinfo/mwforum</FONT></A><BR=
><FONT=20
face=3DArial size=3D2>&gt; Attachments archived at:<BR>&gt; </FONT><A=20
href=3D"http://www.mathcats.com/mwforum/attachments.html"><FONT =
face=3DArial=20
size=3D2>http://www.mathcats.com/mwforum/attachments.html</FONT></A><BR><=
FONT=20
face=3DArial size=3D2>&gt; To unsubscribe or for administrative =
questions contact=20
<BR>&gt; </FONT><A =
href=3D"mailto:mwforum-admin@lists.mathcats.com"><FONT=20
face=3DArial =
size=3D2>mailto:mwforum-admin@lists.mathcats.com</FONT></A><BR><FONT=20
face=3DArial size=3D2>&gt; </FONT></BODY></HTML>

------=_NextPart_000_000D_01C4796B.061B98F0--