hide patcher/patcherview when opened

lx's icon

Hey,

is there a way to open a patcher with a invisible patcherview(hidden patcher window)?
When opening it with stringload("xy") and setting it invisible two line after, like this:

t_object* opened_patch = stringload("xy");
t_object* open_p_topview = jpatcher_get_firstview(opened_patch);
patcherview_set_visible(open_p_topview, 0);

it is shown for a small moment.

I would like to set the position and size first
and make the patcher/patcherview visible just after that.

Is it somehow possible? With intload("...") maybe?

Greetings,
Alex

lx's icon

Hi,

not really, I can see the window for the glimpse of a second before it dissappears.
I want the window to be hidden when opened, not after.

lx's icon

Hey,

...got this working through forcing another window to stay above the created one during the init.

lx's icon

Hi,

you're right this is not really clean. I can't use newobject_fromdictionary
because it does not create a top-level patcher. It creates a (sub)patcher into a patcher.
But there's something like jpatcher_load_fromdictionary. That looks promising. Good idea!

lx's icon

Hi,

don't mind, that dict idea was quite good. Of course I'll post it if I find a solution.

lx's icon