Hello
I am struggling with a real understanding of when to redraw my 2 flucoma GUI objects. At the moment, I get them to behave most of the time…
Tldr: why is glist_isvisible 0 when a window hosting my gui is in the background at load time?
Any help/good practice/tutorial welcome.
p
===
The long read:
At the moment I check the status of glist_isvisible && gobj_shouldvis and print when both are on (&& vis flag of my own object)
It works all the time, except:
When I load the patch saved with a [pd patcher] with the gui on (that window opens, but the gui doesn’t draw, by opposition to native ones)
When I close that subpatch window and reopen it, it is not drawn.
When I zoom in/out
In both cases it calls my _draw method but the flag glist_isvisible is 0 (with the added ‘fun’ of calling the draw function twice when I zoom in or out, once with the flag 1 and right after with the flag 0
What have I done wrong? The source code is online, I can send a link….