Alexander Kappes <[EMAIL PROTECTED]> said: > Can anyone please help me with the GUI? I'm now at a point with my ATC > implementation where I would like to display ATC options > in a seperat window like the one that appears after selecting "Goto > Airport" from the menu bar. How can I toggle this window on and off by > pressing a key
You can hide or show a puObject (can't remember the exact functions but they are obvious if you look at the plib docs). I would suggest binding the key to a property (see keyboard.xml) and then setting up an event that checks the property (once every 500 ms or so) and if necessary changes the visibility of the dialog. > and related to that, how do I find out which key has been > pressed recently? Not sure what you want to do here. Take a look at src/Input/input.cxx for GLUT example. Best, Jim _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
