[Cuis-dev] adding a morph to start of LayoutMorph

Mark Volkmann r.mark.volkmann at gmail.com
Sun Aug 11 06:42:03 PDT 2024


My current use case is that I have a list of todo items. When a new todo is
added, I want it to appear at the beginning of the list.

On Sun, Aug 11, 2024 at 8:39 AM Mark Volkmann <r.mark.volkmann at gmail.com>
wrote:

> I feel like there must be some way to add a submorph to a LayoutMorph
> so that it appears at the beginning of a row or column. It doesn't matter
> to me what that method is called, but I think it needs to exist.
>
> On Sun, Aug 11, 2024 at 3:11 AM Hilaire Fernandes via Cuis-dev <
> cuis-dev at lists.cuis.st> wrote:
>
>> I will not rely on that understanding, because the meaning of
>> addMorphBack: is really about z-ordering which does not apply to
>> LayoutMoprh and the behavior may change unpredictably in the future
>> Le 11/08/2024 à 01:45, Mark Volkmann via Cuis-dev a écrit :
>>
>> The main thing I learned is that if you want to add a morph to a vertical
>> LayoutMorph
>> and you want it to appear at the beginning of the vertical list of morphs,
>> you need to use addMorphBack:.
>> That last bit is what I was looking for all along.
>>
>> --
>> GNU Dr. Geohttp://gnu.org/s/dr-geo/http://gnu-drgeo.blogspot.com/
>>
>> --
>> Cuis-dev mailing list
>> Cuis-dev at lists.cuis.st
>> https://lists.cuis.st/mailman/listinfo/cuis-dev
>>
>
>
> --
> R. Mark Volkmann
> Object Computing, Inc.
>


-- 
R. Mark Volkmann
Object Computing, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240811/24161b28/attachment.htm>


More information about the Cuis-dev mailing list