Re: [Demo] Creating Bloc Widgets with Pharo
Posted by
Stephane Ducasse-3 on
Sep 29, 2017; 4:15pm
URL: https://forum.world.st/Demo-Creating-Bloc-Widgets-with-Pharo-tp4973602p4973945.html
But exposing internals of the encoding is not really good either.
Graphical objects are complex still forcing all the logic to be set by
client is a way to make that we will also get some spaghetti.
Look In Morphic at the icon in the menu, we ended up have wrong
reference all over the places.
Just because the API was not good and did not encapsulate enough behavior.
Stef
On Thu, Sep 28, 2017 at 11:56 PM, stephan <
[hidden email]> wrote:
> On 28-09-17 21:07, Stephane Ducasse wrote:
>>
>> For example why a BlElement cannot get
>> invisible and visible in addition to visibility: BlVisibility visible.
>
>
> It can, and if we do that systematically we end up with a BlElement with a
> thousand methods. There are so many aspects that an element might need to
> handle. Handling children, layout, styling, drawing, fonts, events,
> visibility. Where should the border be?
>
> One thing I noted is that in Bloc we don't have a way to decide where to add
> a dropped element in a parent that has a specified layout. In Morphic that
> is also a responsibility of the layout.
>
> Stephan
>
>
>
>
>
>