Posted: 22nd Sep 2011 16:15
humm i'm making a gui for my app on windows pc platform and i can't find any command that closes my appliction :/

the only way i have for now is windows mode for the standard X top left to close my application.

if i'm just blind please tell me ^^ but i can't see anything to do with closing the program.

thx for any help

p.s if its not part of agk i hope it will be put in as a raw command for pc platforms.
Posted: 22nd Sep 2011 16:36


Posted: 22nd Sep 2011 18:34
Yah, like Hubdule sez. If you're only doing a keyboard version, then this code in your main loop will end the program when the ESCAPE key is pressed.

+ Code Snippet
if GetRawKeyReleased(27) then end


But for devices with no keyboard, you could put in a button that calls the "end" command.
Posted: 23rd Sep 2011 8:26
thanks guys. i forgot how dbp did it. i guess its still should be in the doc's somewhere.

any way as i psted i found "exit" worked and i assigned it to the escape key.

lol i built my own custome buttons made from sprites with aligned text for a challenge but i ccan't close the application lol haha

thanks again