btw, I may tweak these. I just found a better way to do this. jostM wrote: Look at the new EZSlider examples to see how it works. if parent is nil, then a parent windo with bounds is created, and the TopView becomes the parent. If bounds are a point, then, the window is placed nicely at the top of the screen. The window is set to alwaysOnTop= true. this allows for qui creation of widgets which need to pop up so set a valuew: x=MyView.new(bounds: 50@50). instant widget in a window. I'll post a +View in a bit which show how I do this. I will have a prNoParent method which goes right into init{} jost Sciss wrote:can you post an example? you mean like JSCSlider( nil, Rect( 0, 0, 200, 20 )) or...? what would be the purpose? the SVN version currently messes around with the bounds argument which i will probably try to make optional (having the view appear at its preferred size in an automatic layout container) or different (layout constraints string), so not sure it's very cleaned up at the moment in the constructors. ciao, -sciss- Am 26.12.2008 um 19:20 schrieb jostM:I can add this it SCView, since it is basically already written, to JSCView as well.that would simplify a lot of things. I think it is a very good idea. This parent could also have a decorator.Sciss, is it ok if I put this into JSCView as well? 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/ |