Moving objects when patch is locked
I have a patch that using a message boxes and the hover object.
When I hoover with my mouse above a message box it will play the corresponding chord.
Is there any way I could move around those boxes and/or change their size while the patch is locked?
Is there alternative for display strings in somewhat nice appearance rather than those message boxes?

you can script them using 'thispatcher' object, this isn't the exact thing you want but maybe can help you get started(all starts with using 'scriptingname' for the message objects; i set this within message's Inspector as "messagemove" for the scripting name):
Hope it helps 🍻
Indeed a start! I see the problem starts when I have 8 objects I would like to move each separately. I think I should make a system using hover to open the gate for moving an object only when I hover over specific object? that sounds as it will work?
edit: also now when I moving other object that particular object 'messagemove' is moving as well
Here's an option using the textbutton object instead of a message.
Here's an option using the textbutton object instead of a message.
Thanks but it is not working for me. I can't move the object when patch is locked.. :/
i like Pedro's solution quite a bit, so good!...
@R_GOL, lock the patcher, and also make sure it's in presentation mode(also if copying from forums, make sure to trigger all 'loadbang' objects by double-clicking on them, there's one in the outer patcher, and one inside the [p mouse] subpatcher)... once you lock and put the patcher in presentation mode(plus trigger all loadbangs), Pedro's solution should work beautifully.
Nice work, @PEDRO SANTOS! 🙌
Thanks. Indeed working beautifully as you said! thank you both very much!
@PEDRO SANTOS is there any option to change the size of the message boxes while patch is locked?
inside the p position there is a message box: "presentation_rect $1 $2" - where can I see or how can I see all the available attributes?
Sorry for not being more specific beforehand and thanks to Raja for pointing it out, the loadbang initialization and the presentation mode requirements.
BTW, I never understood why the "New from Clipboard", being in the File menu and all, does not trigger the loadbangs, like on opening a file... But recently, Max has something similar in the Preferences, called "Edit Operations Trigger Loadbang", that you can turn on.
Regarding the size, are you talking about resizing the entire patch or a specific button by dragging the edges? If it's the latter, I'm afraid not, there's no practical way for us to get the information on if the mouse is hovering a certain edge. Can you be more specific on your resizing needs?
Regarding the size, are you talking about resizing the entire patch or a specific button by dragging the edges? If it's the latter, I'm afraid not, there's no practical way for us to get the information on if the mouse is hovering a certain edge. Can you be more specific on your resizing needs?
Draging the edges could be the best but also choosing one of the 8 boxes from a dropdown menu or so, then changing its height and width would be great. Something like you can do with the lcd object:
But instead of the lcd to do it with the "textbutton" object we are already using.
So I have added another 'textbutton' object named Button 5.
I manage to change it size using the two floating box numbers. The issue I'm facing is that when I change it size also the location of the box moves. How can I change the size without changing the location?
here is the patch:
I fixed it.
Is there better way of doing so?
Hi! Sorry for not getting back sooner.
Here's an approach using a modifier key. If you press the "s" key (scale) while dragging, instead of changing the position, it routes to change the size of the buttons. Try it and see if it helps!
haha nice tricks! :D
used to be puzzled by max, now we build puzzles with max!
Thanks @PEDRO SANTOS but I'm looking for control both x and y independently. This is elegant way but I would prefer adding two boxes and changing the x and y alone. Which I did but it give me to change it only after I first move the box I want to change it size. any idea why?
You are probably using [pack]. That object only outputs when it receives an input on the leftmost inlet. That's why in my example I force an output of the size part (inputs 3 and 4) with an explicit bang on the 1st input. Alternatively, you can use [pak] to make any input cause outuput.
And here's a revision of my code making the scale X and Y independent:
Beautiful! Thanks for that
@PEDRO SANTOS Do you know if your patch would work with bpatcher objects? I'm not sure how to get bpatcher attributes like you can with regular objects.