[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LOGO-L> Pop up dialog in MicroWorlds



Ray,
If you reverse the order of the if statement inputs then it works. I'm not
sure why and don't really understand the error message. Using brackets ()
didn't seem to help. I like your project idea.

ifelse identical?  first pagelist "page1[show "y][show "n]
n
ifelse identical?  (first pagelist) "page1[show "y][show "n]
n
ifelse identical? "page1 first pagelist [show "y][show "n]
y

That would have to be a bug in MW, wouldn't it?

to words
if equal? "page1 first pagelist
[
make "t1words [You are great!]
make "t2words [I don't feel like talking]
]
if  "page2 = first pagelist
[
make "t1words [I am happy!]
make "t2words [Don't touch me!]
]
end

-- Bill

>I re-examined my code and it does work now. However I have problems with
the
>following procedure called Words, which reports: f is not true or false in
>words
>
>to Words
>if first pagelist = "page1
> [
>make "t1words [You are great!]
>make "t2words [I don't feel like talking]
> ]
>if first pagelist = "page2
>[
>make "t1words [I am happy!]
>make "t2words [Don't touch me!]
>]
>end
>
>Please, can you (or anyone else) help.
>The routine will help students who are focussed on the language arts aspect
>of a project (say, an adventure game or a comic strip) create text dialog
>for each of the characters (turtles) on each page.
>Thanks
>ray.
>
>> -----Original Message-----
>> From: owner-logo-l@gsn.org [mailto:owner-logo-l@gsn.org]On Behalf Of
>> Bill Kerr
>> Sent: Friday, November 27, 1998 4:30 AM
>> To: RAY CATZEL; Logo List (E-mail)
>> Subject: Re: LOGO-L> Pop up dialog in MicroWorlds
>>
>>
>> Ray Catzel wrote:
>> >For example if I wanted the text box to be created at the
>> >position of the mouse, I thought the following would work:
>>
>> >set "text1 "pos mousepos
>> >
>> >It does not work. Can anyone help.
>>
>>
>> That *does* work in this context. Create a button with your
>> set line on it,
>> click many times. When you click the button then the textbox
>> follows the
>> mouse around the screen. One interesting effect is that if
>> you move the
>> mouse outside the screen limits then the button clicks off because set
>> doesn't like the input at the extremities (I'm not sure why, the error
>> message reads
>> set does not like -297 as input, etc.)
>> -- Bill Kerr


---------------------------------------------------------------
Please post messages to the Logo forum to logo-l@gsn.org.  Mail
questions about the list administration to logofdn@gsn.org.  To
unsubscribe send    unsubscribe logo-l    to majordomo@gsn.org.



Global SchoolNet Foundation - Linking Kids Around the World!
Copyright GSN - All Rights Reserved - Comments & Questions
Visit GSN's Global Schoolhouse for more exciting learning resources!
Search our Site - Home