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

Re: [sc-dev] EZ methods



I've just tried this further, and it would be easy to  do something like
this


Superclass

EZgui // (no *new method, just utilites) Abstract
    does all the geometry, and labels and basic value methods; Top
labels or left labels


    EZlists // abstract, does all the list stuff

       EZPopUpMenu
       EZListView

    EZValues // abstract does specs, etc
       EZSlider
       EZNumber
       EZRanger



jostM
      







Stephan Wittwer wrote:
>
> Am 21.12.2008 um 19:05 schrieb jostM:
>
>> oops, I mangled that last message. here it is again
>>
>> That would be possible.
>>
>> These two EZ's are the only ones so far to have an enclosing
>> CompositeView.
>
>
> Actually, since quite some time there is EZRanger w/ a comp vw.
>
>
>> I worry about adding a CompositeView  to the others,
>> since it could mess up people's layouts. Though I suppose they could
>> have zero margin parents.
>> Should I look into this as well?
>>
>> I wonder if they should have a little randomness in the initial screen
>> position, in case you open several. Or I should make a switch so that
>> bounds means the window if there is no parent provided. Actually, that
>> makes sense.
>>
>>
>> A window would be no problem though.
>>
>> jostM
>>
>>
>>
>>
>>
>>
>>
>> Scott Wilson wrote:
>>> Should other EZs do something similar for consistency?
>>>
>>> On 21 Dec 2008, at 09:38, jostM wrote:
>>>
>>>> Just to let people know:
>>>>
>>>> both EZPopUpMenu and EZListView now allow for quick creation without a
>>>> window (good for preference panes, etc.)
>>>>
>>>>       (
>>>>       g = EZListView.new(label: "My PopUp List:");
>>>>       g.addItem(\item0, {"this is item 0". postln});
>>>>       g.addItem(\item1, {"this is item 1". postln});
>>>>       g.addItem(\item2, {"this is item 2". postln});
>>>>       )
>>>>
>>>>
>>>>       (
>>>>       g = EZPopUpMenu.new(bounds: 200@20 , label:"PopUp Menu:");
>>>>       g.addItem(\item0, {"this is item 0". postln});
>>>>       g.addItem(\item1, {"this is item 1". postln});
>>>>       g.addItem(\item2, {"this is item 2". postln});
>>>>       )
>>>>
>>>> jost
>>>>
>>>> _______________________________________________
>>>> 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/
>>>
>>>
>>> _______________________________________________
>>> 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/
>>>
>>
>>
>> _______________________________________________
>> 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/
>
>
> _______________________________________________
> 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/
>

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