[Cuis-dev] Morph color
amalawi at gmail.com
Sun Nov 3 09:59:58 PST 2019
On Sat, Nov 2, 2019 at 11:09 PM Phil B <pbpublist at gmail.com> wrote:
> Hi Ala'a!
> As you've discovered, Morph is really an abstract class. I'd suggest looking at RectangleLikeMorph as the most basic Morph you actually want to instantiate since it lets you set the color etc. Think of Morph as being to Morphic as Object is to Smalltalk: it's a foundation class you use it everywhere... just not directly.
> On Sat, Nov 2, 2019 at 3:01 PM Ala'a Mohammad via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>> My name is Ala'a, and I live in UAE.
>> I'm new to this mailing list and to Cuis Smalltalk. I'd been attracted
>> to its simplification core value. I've been wading my way through the
>> classes, their documentation, experimenting and re-learning Smalltalk
>> I understood (correct me if i'm wrong) that Morphic framework is
>> different from other Smalltalk dialects (i.e. Pharo and Squeak), and
>> in the transition to version 3 which is better. Thus I began reading
>> its related classes one of them was Morph and while experimenting I've
>> found strange thing about its initial color. Every instance is Blue in
>> color and I can not use color: selector to change it, the debugger
>> shows up since Morph instance did not understand the message.
>> upon Browsing the class there was no color: method and only a read
>> color which was a constant ^Color blue.
>> Is this intentional? and if so what is the motivation?
>> Thanks again for this great software.
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
More information about the Cuis-dev