Hi!
I have a multi-window app and I would like to hide (and show) the sub-windows of my project whenever I need. Is that Possible?
I’m on windows 10 and the project is based on the example “multiWindowExample”.
Side note: I can’t just set the position of the window out of the screen because it will be still listed in the taskbar.
I just found out a method and I’ll leave it here for those who may have the same problem.
Each window (that you want to show or hide) has to have a variable of type “GLFWwindow” to refer to. For example, in the “multiWindowExample” that comes with oF, you can add something like this to the class “GuiApp.h” (just below “ofxPanel gui:”):
GLFWwindow * window1:
Now you can access to that window with that reference (“window1”).
So, you can hide “window1” from the main app (ofApp.cpp) with just:
glfwHideWindow(window1);
and you can show it again with:
glfwShowWindow(wind);
Hi Regi,
I’m not on my computer right now, so I can’t test it.
I suggest you to open the ‘multiWindowExample’ that comes with openFrameworks and try adding the lines I explained above. If you can make it work there, then you can add it to your project.