[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

>> false in the class code.
> you could simply call ".front" on the window.

yes, obviously,  but typically you accidentally click beside the view,
and then you have to go looking for it. That's the point behind alwaysOnTop.

I am making no progress on SCView though:

It seems to be impossible to create a window within View's init method.
The whole app crashes (why?).

try replacing View's init method with this (just as test):

    init { arg argParent, argBounds;

        argParent = SCWindow.new("", (400@400).asRect).front;

        parent = argParent.asView; // actual view

            // call asView again because parent by this point might be a
        this.prInit(parent.asView, argBounds.asRect,this.class.viewClass);
        argParent.add(this);//maybe window or viewadapter

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/