[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] EZ actions
I just reverted these pending some further checking
Julian Rohrhuber wrote:
> How do you assign mouseDownActions on an EZSlider?
assign to the subviews, since and SCCompositeViw accepts none.
access these with sliderView and numberView
> Is there a recommended way to access the main (active view)?
I don't know what you mean here. on a slider, there are two widget views.
I have not changed the old functionality of EZSLider or EZNumber in any
way, nor was I planning to.
I simply put them into a subview, standardized the parent bounds scheme,
and added some nice features which EZListview and EZPopUPMenu also have.
docs will be update soon. I renamed the new views to EZSliderSC and
EZNumberSC for the later redirect, but you can try thme under this name
already. try the examples below, and look at the docs for EZPopUpMenu
and EZListView.
g = EZNumberSC(nil, 400 @ 48, "Amp", \db,
{|ez| ez.value.postln }, -6);
FlowView.new.flow{arg w;
w.decorator.gap=2@2;
20.do{EZSliderSC(w, 390@16," test ")
.labelView.background_(Color.grey).stringColor_(Color.white)}
}
g = EZSliderSC(nil, 300 @ 70, " Amp ", \db,
{|ez| ez.value.postln }, -6)
.labelPosition_(\top)
.labelView.background_(Color.grey).stringColor_(Color.white)
g = EZSliderSC(nil, 90 @ 200, " Amp ", \db,
{|ez| ez.value.postln }, -6, numberWidth:40)
.labelPosition_(\top)
.labelView.background_(Color.grey).stringColor_(Color.white)
g = EZSliderSC(nil, 50@300, " Amp ", \db,
{|ez| ez.value.postln }, -6)
.labelPosition_(\stack)
.labelView.background_(Color.grey).stringColor_(Color.white)
///////// no labels
g = EZSliderSC(nil, 400 @ 48, nil, \db,
{|ez| ez.value.postln }, -6);
g = EZSliderSC(nil, 50@300, nil, \db,
{|ez| ez.value.postln }, -6)
.labelPosition_(\top)
.labelView.background_(Color.grey).stringColor_(Color.white)
g = EZSliderSC(nil, 50@300, nil, \db,
{|ez| ez.value.postln }, -6)
.labelPosition_(\stack)
.labelView.background_(Color.grey).stringColor_(Color.white)
_______________________________________________
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/