Erik Hofman writes: >Isn't there any trick with the puObject member either (I just need to >know which menu entry is causing the callback)?
why not just use use the puObject pointer ???? /* print the 'menu text' of calling menu entry on stdout */ void tattle_tale_cb( puObject *me) { printf("%s\n",me->getLegend()); /* do something useful now */ } You could also derive a new class from popUpMenu differing only by adding a userData argument to the constructor which you could then use for ANYTHING But you REALLY SHOULD ask this over on the PLIB list as Steve probably has a better way of doing this Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel