[Cuis] Menu 'Help' / 'Useful expressions' text window --> workspace?
Juan Vuletich
juan at jvuletich.org
Fri Jan 4 18:18:17 CST 2013
Added it. Feel free to enhance as you wish...
Cheers,
Juan Vuletich
H. Hirzel wrote:
> On 1/4/13, H. Hirzel <hannes.hirzel at gmail.com> wrote:
>
>> Hello Juan,
>>
>> Another candidate code snippet I suggest to add
>>
>> "taken from
>> http://wiki.squeak.org/squeak/52
>> works in Squeak but not in Cuis"
>>
>> m := RectangleLikeMorph new.
>> m layoutPolicy: TableLayout new.
>> m listDirection: #leftToRight.
>> m hResizing: #shrinkWrap; vResizing: #shrinkWrap.
>> m layoutInset: 20; cellInset: 10.
>> 4 timesRepeat:[ m addMorph: (RectangleMorph new color: (Color random)) ].
>> m openInWorld.
>>
>>
>> I think it would be good to include both, the not working Squeak
>> version and the fixed one for Cuis.
>>
>> And may even put that into another help workspace so that we can add
>> more Morphic examples for people to learn quickly.
>>
>> An extension from the example above could be to have 4 buttons and add
>> a label and block to each of them thus creating a launcher.
>>
>
> To clarify: something like this...
>
> label1 := 'aaaa'.
> label2 := 'bbbb'.
> label3 := 'cccc'.
> label4 := 'dddd'.
>
> block1 := [....].
> block2 := [....].
> block3 := [....].
> block4 := [....].
>
> code which creates a RectangleLikeMorph (or the subclass PasteUpMorph
> or another one like a window?) which in turns has 4 buttons with the
> labels and blocks attached ---> a launcher.
>
>
>
More information about the Cuis
mailing list