![]() |
Making a modal SDL window ? | ![]() |
jeroen.clarysse
![]() |
![]() |
I have an application that needs to display some SDL-loaded stuff, and read some SDL keystrokes when the user presses the “settings†button the main (non-SDL) window.
so I just make a new window : window = SDL_CreateWindow(“Settings", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, dialog_w, dialog_h, SDL_WINDOW_SHOWN); and make a small event loop that does the necessary polling. this all works find, but I want this window to be front-most at all time until the settings are canceled or saved is there a way to do this ? _______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||
|
![]() |
Making a modal SDL window ? | ![]() |
Jonny D
![]() |
![]() |
I know that the Win32 EnableWindow() can be used for this, but I don't know that it would keep the subwindow on top alone.
Jonny D On Friday, July 24, 2015, jeroen clarysse wrote:
|
||||||||||||
|
![]() |
Making a modal SDL window ? | ![]() |
jeroen.clarysse
![]() |
![]() |
I think users will still be able to tab between windows or via utilities; On macOSX "cmd ~†would cycle between windows as well
_______________________________________________ SDL mailing list http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org |
||||||||||||
|