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

Re: [sc-users] In place right click menus



Batuhan Bozkurt schrieb:
Stefan, thanks for the code! I was wondering if there was a way of opening a menu that is native to the default GUI kit. Something like this would be a second resort but too bad removing crashes SC.

However, there is a simple workaround that seems to work fine, but I don't really know if that is safe. Forking a different thread for removal with a little bit of a wait time works without crashes:

fork {  0.01.wait; contextMenu.remove; };

Since I don't really know what the problem is with the intuitive approach, can't say if this is a safe way of doing this.

hmm .. it worked! once, twice, a third time ... and then ... boom! crashing the app again.

For now I'd take the approach Scott mentioned: create a UserView that is "hidden" at instantiation. I haven't got the time to test extensively now but I guess it might work. btw.: I found Hadron really inspiring! Yet some recent change in SC (possibly rev. 9202 - http://fisheye3.atlassian.com/changelog/supercollider?cs=9202 - not sure ...) seems to have broken some functionality: when I have some objects on the canvas and try to move them they start to behave unpredictably (jumping around on the canvas, not moving correctly with your mouse-movements). Have you recognized that yet? I have recognized the same behaviour with one of my recent GUI-experiments (a scalable/movable UserView in a TabbedView).

Anyway, thanks so much for Hadron ;)

Stefan

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/