Hi! I'm new here, and I'm not quite a developper. I'm a musician, and use fltk/fluid to design small and simple OSC interfaces.
I need to get the parent of a Fl_Box type to determine what the handle method does. To be more accurate, I need to check if the parent class is light_xyPad (which is a class I've written, quite close to Fl_Group, but with some private variables). I thought about using the typeinfo lib, and use something like this: typeid(this->parent()).name() (because I didn't figure out how to use type() function, always empty), but the point is that parent() is of type Fl_Group, and thus, I only get Fl_Group as a type, even if my Widget has the light_xyPad class. How can I manage to get the parent class? Or, maybe better said: is there a way to do this (as I know that c++ is not exactly aimed to do that, and I didn't understand much to RTTI). Thanks Aurélien
_______________________________________________ fltk mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk

