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

Re: [sc-dev] EZ methods



Scott Wilson wrote:
>
> Well, I think it would be best if they were consistent. I thought the
> consensus was that you shouldn't need a FlowLayout to use them. The 0
> margins approach seems sensible.
>
> Any objections?
>
> S.
>
>

I actually have a very good template for the new ez views, which even
allow for labels top or left.

hoever, not even the existing EZViews are quite consistent. The ones
with number values use specs, e.g.

I could easily simply switch in the widgets for each of these and adjust
the methods of my template, most of which could be a superclass to
EZViews.  I could add labelPosition and gap to the other ones as well. I
think this is worth doing.



Here are the new methods of som EZView (forge EZScroller. Its great, but
its own thing)

EZListView{ // and EZPopUpMenu

	*new { arg parentView, bounds, label,items, globalAction, initVal=0, 

			initAction=false, labelWidth=80, labelHeight=20, labelPosition=\top, gap=4;

			
EZSlider{
 	*new { arg window, dimensions, label, controlSpec, action, initVal, 

			initAction=false, labelWidth=80, numberWidth = 80;

EZNumber{

	*new { arg window, dimensions, label, controlSpec, action, initVal, 

			initAction=false, labelWidth=80, numberWidth = 80;

EZRanger{ 
	

	*new { |w, dimensions, label, spec, action, initVal, initAction=false, 

		labelWidth=60, numberWidth=40, unitWidth=30, useTwoLines=false| 

	

jostM	



_______________________________________________
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/