confirmation on exit
confirmation on exit
i want to put a confirmation window when the player click on the "close button" at the main window of the game. is it possible? thanks
Yes, this is possible...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Have a look at tutorial #5 (UserInterface)...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Ohhh, you mean how to detect if the program was closed by clicking the close button from the Windows window !!!
Sorry, you asked about confirming on exit, not how to detect something...
The confirmation should be covered by tut5...
Your actual question: I don't know...
It was asked sometimes in the forum, I think, but I don't know if it was solved...
Sorry, you asked about confirming on exit, not how to detect something...
The confirmation should be covered by tut5...
Your actual question: I don't know...
It was asked sometimes in the forum, I think, but I don't know if it was solved...
while(!asleep) sheep++;
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
IrrExtensions:
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
thank you man, it really worked.drac_gd wrote:assuming u r using windows this might work. ( didnt try it )
in CIrrDeviceWin32.cpp function WinProc add case WM_CLOSE:
set a flag or something
return 1 so windows doesnt process the close event.
after conformation call PostQuitMessage
*i dont think that it is a newbie question *