on_esc = NULL funktioniert nicht!

Posted By: garv3

on_esc = NULL funktioniert nicht! - 11/07/09 16:47

Hallo nochmal!

Ich möchte den ESC-Key deaktivieren, damit das Fenster nicht geschlossen wird, wenn man ihn drückt.
Habe dazu an den Beginn der main-Funktion on_esc = NULL; geschrieben. Das Fenster schließt sich dennoch. Sowohl im Testrun als auch über 'run current script'.

Jemand ne Idee?
Posted By: seecah

Re: on_esc = NULL funktioniert nicht! - 11/08/09 06:15

Hi,

I did not understand your language but thanks for the help of google translate..
It might help if you'll assign an empty function on on_esc something like..


Quote:

void do_nothing()
{}

on_esc = do_nothing;


Hope that helps..
Posted By: garv3

Re: on_esc = NULL funktioniert nicht! - 11/08/09 14:06

Works fine! Thanks!
Posted By: seecah

Re: on_esc = NULL funktioniert nicht! - 11/09/09 03:04

Always welcome...
© 2024 lite-C Forums