Hi all,
Sorry if this is the wrong section to post, but it seemed the most appropriate place.
I'm not sure if there's a solution to this (very simple) problem, but wanted to check.
So I understand how to open a subpatch via pd message:
|; (
|pd-nameofsubpatch vis $1(
At the moment, I control the argument $1 using a radio button, which outputs either a 0 or 1. This works nicely as an Open/Close object for the subpatch.
What would be useful for me is to receive the current Open/Close status of a subpatch. For example, imagine the subpatch is already open, however the subpatch window is large and takes up the full screen. It's therefore less convenient to move the subpatch to be able to click on the aforementioned radio button and close it.
It's much more convenient to simply click the red cross on the subpatch window - however this does not then make the corresponding change to the radio button (so it still says "Open" even though the user closed the subpatch).
So is there a way to receive information on the Open/Close status of a specific subpatch? If I can receive this info, it's obviously then trivial to alter the state of the radio button.
Thanks in advance for your time.
Oli