Hi, anyone has any experience with scrollable (arbitrary) Spec Model? e.g. I have a long list of buttons and fixed outer container window⦠â As far as I can see scrolling is only available on morphic side, so I am not sure how to augment it⦠(Although we should probably allow scrolling on Spec side in some way) Thanks, Peter
You can use a ListModel and put your Buttons in it. ListModel new items: ( 'Files' asPackage classes collect:[:c | ButtonModel new icon: c systemIcon; label: c name; action:[ UIManager default alert: c comment title: c name]]); displayBlock: [ :x | x buildWithSpec ]; openWithSpec 2016-05-18 17:55 GMT+02:00 Peter Uhnák <i.uhnak@gmail.com>:
Hi,
anyone has any experience with scrollable (arbitrary) Spec Model?
e.g. I have a long list of buttons and fixed outer container windowâ¦
â As far as I can see scrolling is only available on morphic side, so I am not sure how to augment it⦠(Although we should probably allow scrolling on Spec side in some way)
Thanks, Peter
Oh, right⦠I didn't realize I can do that. :) Thanks, Peter On Thu, May 19, 2016 at 11:43 PM, Nicolai Hess <nicolaihess@gmail.com> wrote:
You can use a ListModel and put your Buttons in it.
ListModel new items: ( 'Files' asPackage classes collect:[:c | ButtonModel new icon: c systemIcon; label: c name; action:[ UIManager default alert: c comment title: c name]]); displayBlock: [ :x | x buildWithSpec ]; openWithSpec
2016-05-18 17:55 GMT+02:00 Peter Uhnák <i.uhnak@gmail.com>:
Hi,
anyone has any experience with scrollable (arbitrary) Spec Model?
e.g. I have a long list of buttons and fixed outer container windowâ¦
â As far as I can see scrolling is only available on morphic side, so I am not sure how to augment it⦠(Although we should probably allow scrolling on Spec side in some way)
Thanks, Peter
participants (2)
-
Nicolai Hess -
Peter Uhnák