[SDL] How can i break/supress the Quit-Event
Will Langford
unfies at gmail.com
Thu Mar 11 19:01:33 PST 2010
On Thu, Mar 11, 2010 at 8:50 PM, EightBitWitch <admin at eightbitwitch.de>wrote:
> Thanks for your anwser,
>
> yes, i can catch den Close-Event of the Main-Window and it effects, when i
> click the Close-Button on the Main-Window. But it have no effect, when i
> click on Close-Button on the SDL-Window, the Main-Window close, here i dont
> can catch the close-Event of the Main-Window. I dont understand it.
>
>
I believe this may be of some use:
http://www.libsdl.org/cgi/docwiki.cgi/SDL_QuitEvent
In your event loop, if you check event->type against SDL_QUIT, you should be
able to then ignore the event if you want, making it impossible to close the
window, according to the documentation ?
---
The reason the VB Main Window's Unload/Terminate/whatever-event-it-is works
on the Main Window... and you can catch that... is because the VB Main
Window is handled by VB. When you create an SDL screen, the new SDL window
is handled by SDL, not VB.
---
My apologies if I'm speaking out of my ass, it has been several years since
I have done VB :)
-Will
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20100311/1545e23c/attachment.htm>
More information about the SDL
mailing list