[Cuis-dev] Morph color

Ala'a Mohammad amalawi at gmail.com
Sun Nov 3 09:59:58 PST 2019


Hi Phil,

Thanks!

regards,

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.
>
> Thanks,
> Phil
>
>
> On Sat, Nov 2, 2019 at 3:01 PM Ala'a Mohammad via Cuis-dev <cuis-dev at lists.cuis.st> wrote:
>>
>> Hi,
>>
>> 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
>> again.
>>
>> 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.
>>
>> regards,
>>
>> Ala'a
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev


More information about the Cuis-dev mailing list