[Pharo-users] [Pharo-dev] Scrollable Spec Model

Nicolai Hess nicolaihess at gmail.com
Thu May 19 17:43:17 EDT 2016


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 at 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160519/e3884278/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scrollable.png
Type: image/png
Size: 22139 bytes
Desc: not available
URL: <http://lists.pharo.org/pipermail/pharo-users_lists.pharo.org/attachments/20160519/e3884278/attachment.png>


More information about the Pharo-users mailing list