[SDL] How can i break/supress the Quit-Event
admin at eightbitwitch.de
Thu Mar 11 18:50:43 PST 2010
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.
Justin Coleman schrieb:
> This isn't an SDL issue. What you need is to find a VB9 handler for
> the window's Quit or OnExit event (I don't have VS installed right now
> or I'd look up the actual event name for you). In VS2008 I know
> there's a way to do this, maybe check around some VB forums.
> Good luck :)
> On Thu, Mar 11, 2010 at 9:03 PM, EightBitWitch <admin at eightbitwitch.de> wrote:
>> (sorry for my bad english, i came from germany)
>> i'm starting one week ago with SDL. I use SDL.Net (SDL dotnet) under Visual
>> Basic 9, my OS ist WindowsXP.
>> At the moment i have a problem, i think its trival, but is'nt it for me.
>> I start with a Windows.Forms-Application (not Console-Application!) and by
>> clicking an an Button i create a SDL-Window with Video.SetVideo ... that
>> works great and i can render frames for my test-programm in the
>> tick-event-handler. Why i use a Windows.Forms-Application? I must display a
>> WebBrowser-Control by example and need some Windows to display Data outside
>> of the SDL-Window.
>> Now my Problem:
>> The SDL-Windows have a red X in the right upper corner to close the
>> SDL-Window and when i click on it (or Press ALT-F4), the whole Application
>> will close, not only the SDL-Window. I have installed a Eventhandler to
>> catch the sdl-quit-Event, but find not way to break the quiting-process.
>> I must catch the quit-event, so that i can ask the user "Quit, Yes or No". I
>> can display a messagebox, but i can not break the quit-event.
>> I dont have found helpful code-examples. I search over three days and read a
>> lot of Expamles in C, C++ and C# and two in Visual Basic ;)
>> I think its a simple problem ... please help me to master it.
>> Greetings, Valerie
>> SDL mailing list
>> SDL at lists.libsdl.org
> SDL mailing list
> SDL at lists.libsdl.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SDL