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

Re: [sc-dev] SF.net SVN: supercollider:[8298] trunk/build/SCClassLibrary/Common/GUI/ ViewRedirect.sc



Actually come to think of it, I should keep things as they are. Swing might require a different window frame.

So if you want to have an EZSlider in a Popup on Cocoa, with slider height 20, then you should write:

EZSlider (nil,400@44, " my Slider ")

I will note this in the docs, that you need 24 more in the height for the window.

jost

jostM wrote:
Julian Rohrhuber wrote:
  
Look at the new EZSlider examples to see how it works.
      
it doesn't work very well with EZSlider:

 EZSlider(nil, 400 @ 20, "Resonance");


    

I originally made it so that if a window pops up, it takes the bounds
you entered. If it is a point, then it is place towards the top of the
screen.

I think you are right, that it seems intuitively correct to write 400 @
20, and to get a 20 high slider.

So I think I should make the window higher *if the argument is a point*

If it is a rect, then it should take on exactly the bounds you enter
(and the slider view will be 24px less height than the window height
then). This is so people can place a view precisely if they want.

Again this is only with popUp windows. if the view has a parent, th
bounds are what you ender .asRect;

does that make sense?


jsot

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