<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
&nbsp;
<br>Marcus Denker wrote:
<p>>&nbsp;&nbsp;&nbsp;&nbsp; -> optionally show the value of the evaluated
expression. (balloon-help)
<p>&nbsp;&nbsp;&nbsp; Have you ever tried MorphicWrappers (I'm feeling
like I'm going to make
<br>everybody skip my messages if I keep talking about MWs... sorry)
<p>&nbsp;&nbsp;&nbsp; One of the nicest things about morphic wrapper is
that you can evaluate a expression
<br>just by typing it (anywhere) and pressing enter.
<br>&nbsp;&nbsp;&nbsp; We call it typing in the air, it's like this:
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; When you start typing, a
balloon pops up (attached to the HandMorph) and starts
<br>containing what you are typing [you are editing balloon's contents],
when you press enter
<br>the expression gets evaluated and the result gets attached to the HandMorph
(arrow).
<br>&nbsp;&nbsp;&nbsp; For example, if you point to the background of a
World (the World itself) and write
<br>EllipseMorph new, a new EllipseMorph gets attached to you hand... But,
eh! what happens
<br>if I type something like '1+2', where the result is not a Morph? well,
you'll get a MorphicWrapper
<br>on the result, that will wrap the result, and show it in a Morphic
way...
<br>&nbsp;&nbsp;&nbsp; And also, the current context for what you are typing
is the object under the arrow, so, if you
<br>are pointing to the just created EllipseMorph and say: 'self color:
Color red', ellipse's color will
<br>change to be red, and if you say bounds, you'll get EllipseMorph's
bounds.
<br>&nbsp;&nbsp;&nbsp; If you drop a block on the World (just type '[1+2]',
and press enter, for example), you place
<br>it in the world, place the arrow over it, and say 'self value', you'll
get '3' attached to your hand...
<br>&nbsp;&nbsp;&nbsp; Ok, there's more of it... just ask, I'll gladly
answer!
<p>&nbsp;&nbsp;&nbsp; Answering Bye!
<br>&nbsp;&nbsp;&nbsp; Richie++
<p>--
<br>A390 1BBA 2C58 D679 5A71 - 86F9 404F 4B53 3944 C2D0
<br>Investigacion y Desarrollo - CoreLabs - Core SDI
<br><A HREF="http://www.core-sdi.com">http://www.core-sdi.com</A></html>


--- For a personal reply use gera@core-sdi.com