Movable UI

personal_username's icon

Hi guys!

I remember watching a patch enabling user interface to be draggable. I think it was about rearranging patchers placement with mouse click and dragging, but cannot find it.
Any ideas? I'd like to learn a bit more how to build user friendly interfaces especially with the possibility of rearranging UI blocks.

Roman Thilenius's icon


freely moving bpatchers in a locked patch?

personal_username's icon

Yes, locked patch, or app

11OLSEN's icon

jsui can move a window and probably also a bpatcher which contains it.

Roman Thilenius's icon


trying to move a bpatcher by touching it with the mouse usually ends in a closed department.

11OLSEN's icon

Was meinst du mit closed department? Do you need an example?

Roman Thilenius's icon

i usually stop trying it when i start beating my head on the table.

for windows there are 5 solutions, but for objects it is close to impossible.

11OLSEN's icon

Let me post something tomorrow. I think it's possible.

personal_username's icon

thanks guys, I am pretty sure I saw an example on the forum, but cannot find it atm...

11OLSEN's icon
Roman Thilenius's icon


aha, it was even worth a new website.

ok, it is really great to move a bunch of objects in a group like this, and it works fine in presentation and in unlocked, too.

now... can´t we put the stuff into the bpatcher?

personal_username's icon
11OLSEN's icon

@Roman, you made a good point there. I added another jsui to drag the bpatcher from within.

Roman Thilenius's icon


so that actually works? and what would happen if it is inside 2 levels or bpatchers? because otherwise it is in practice limited to use it in closed applications (it causes too much mess when you are still programming)

i wonder how an object inside a bpatcher can know about the scripting name of its own bpatcher instance...

in an ideal case, we would only have [r foo]-[thispatcher] in root.

sorry that i only consume it instead of helping. my religion forbids me to touch java/js.

11OLSEN's icon

Nested ones (if you mean that) seem to work but i can't imagine a usecase for it:

"i wonder how an object inside a bpatcher can know about the scripting name of its own bpatcher instance..."

Just look into the script. Aww wait, you won't for reasons of religion.

" because otherwise it is in practice limited to use it in closed applications (it causes too much mess when you are still programming) "

When you are still programming (patcher is unlocked) the jsui will ignore the value change like any other object

Roman Thilenius's icon


if it can read the scripting name of its parent object, we are not so far away from removing the requirement that the bpatcher object must have a scripting name

i.e. couldnt one move the object without thispatcher?

yes, i know, a bpatcher instance doenst know about its own window.