Event Proccessing Questions

BlitzMax Forums/BlitzMax Programming/Event Proccessing Questions

I have the feeling you've been bitten by the automatic int -> object conversion, and that the fact that the EventData() -> TGadget yielded a valid tgadget is puerly coincidence. Needless to say this isn't reliable.
I have barely started to toy with MaxGui, but I think the source gadget can be retrieved from the 'source' field of the event object.