-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating hidden window #29
Comments
... No. But you may want to look at |
something like this, with corresponding changes to the app parameters, should do the trick:
Does that look ok to you? Should i explore that further? |
That or an extra entry Hidden in |
tell me what you prefer and i'll try an implementation |
I do not know yet what is the best possible location, between WindowSizeState or a hidden flag. I will need to think about it in more details, but of course your help would be appreciated. Any change needs to be validated with glfw &sdl, on the different OS (windows, mac, linux, etc.); which makes this a bit complex (but I would handle the porting part ;-) By the way: would using WindowSizeState.minimized be sufficient for you? Beware, it might be broken; this is yet another corner case that I did not explore intensively. |
I understand that gets hairy. glfw at least just supports it, and if it then doesn't work on a platform thats kinda not your problem.
When setting `params.app_window_params.window_geometry.window_size_state = hello_imgui.WindowSizeState.minimized`, the window still flashes briefly when its created.
Furthermore, later doing `hello_imgui.get_runner_params().app_window_params.window_geometry.window_size_state = hello_imgui.WindowSizeState.standard` does nothing, so i can't unminimize it. And the autosize we discussed today doesn't work when in minimized state :p
|
After studying this, I think that WindowSizeState is not the appropriate place, and that a better solution would be either to add |
Super, that should do the trick for me! Will test in the next week or so (let me know if you make a pypi release, that makes testing much quicker ;) ) |
Tested with 0.8.5: works! |
I'd like to create a window that is initially hidden, i will only show it later. right now it flashes up before i get a chance to call
glfw.hide_window(self._glfw_window)
in thepost_init
callback.I tried:
but it makes sense that wouldn't work since glfw isn't even initialized at this point, correct?
Is it possible to make a window that is initially hidden?
The text was updated successfully, but these errors were encountered: