[Cuis-dev] scrollable lists

Mariano Montone marianomontone at gmail.com
Wed Aug 7 06:30:42 PDT 2024


El 6/8/24 a las 23:23, Mark Volkmann via Cuis-dev escribió:
> What is a good way to implement a vertical scrolling list of Morphs? Should I create LayoutMorph that use a column direction and put that inside a Pluggable ScrollPane?
>
> R. Mark Volkmann
> Object Computing, Inc.

Yes. If I translate your words to code:

|p| p := PluggableScrollPane new. p scroller: LayoutMorph newColumn. 
Color indexedColors do: [:color | p addToScroller: (BoxedMorph new 
color: color; yourself)]. p openInWorld
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240807/9b65342a/attachment.htm>


More information about the Cuis-dev mailing list