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