[squeak-dev] Re: Painful Form errors

karl ramberg karlramberg at gmail.com
Thu Feb 18 16:24:15 UTC 2016

Thanks, that works.
We can just call:
expandedForm replaceColor: Color white withColor: Color transparent

The method Form>>replaceColor: oldColor withColor: newColor does change the
form in place so there is no need to re-assign to the variable.
I'm a little confused to why this did not work before.


On Thu, Feb 18, 2016 at 4:18 PM, marcel.taeumel <Marcel.Taeumel at hpi.de>

> Hi Karl,
> the semi-colon after "asFormOfDepth: Display depth" is wrong because that
> call creates a new form. You have to wrap it into parentheses and then call
> "replace.." on the result. :-)
> Best,
> Marcel
> --
> View this message in context:
> http://forum.world.st/Painful-Form-errors-tp4878535p4878550.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20160218/30dc71e9/attachment.htm

More information about the Squeak-dev mailing list