how to determine the "class" of a given gadget

BlitzMax Forums/BlitzMax Beginners Area/how to determine the "class" of a given gadget

I'm not sure how to do it (or even if it can be done). The MaxGui OO is a bit poor although I did have a look at this as a wrapper.