[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-dev] EZ actions



that's becaus no label view is created if label is set to nil.

if you say label_("test") later, a labelView will be added. This is so
you can use the views without lables, but don't have zero-sized
lableViews hanging around in your layout.

I will add a warning message to the labelView getter  if it is nil.

jost

btw, the new error messages are great!

jost


Julian Rohrhuber wrote:
>> try out the new pop up features, adn the three layout states for
>> EZSliderSC.
>>
>> labelPosition= \left, \top, or \stack
>>
>> they're fun.
>
> yes! nice one.
>
>
> btw. this fails:
>
> g = EZSliderSC(nil, 50@300, nil, \db,
>     {|ez|  ez.value.postln }, -6)
>     .labelPosition_(\stack)     
> .labelView.background_(Color.grey).stringColor_(Color.white)
>
>
> ERROR: Message 'background_' not understood.
> RECEIVER:
>    nil
> ARGS:
> Instance of Color {    (06DDD370, gc=EC, fmt=00, flg=00, set=02)
>   instance variables [4]
>     red : Float 0.5   3FE00000 00000000
>     green : Float 0.5   3FE00000 00000000
>     blue : Float 0.5   3FE00000 00000000
>     alpha : Float 1.0   3FF00000 00000000
> }

_______________________________________________
sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/