EventSource and Event_MenuAction ?

BlitzMax Forums/BlitzMax GUI Programming/EventSource and Event_MenuAction ?

What is EventSource() supposed to return when an EVENT_MENUACTION event is raised? At first I thought it would surely be the handle of the "window" ( gadget ) you pass with PopUpWindowMenu but it isn't. So I tried the handle of the menu but it's not that either.

So what is it supposed to be? I'm running out of things to try here.

EDIT: OK, it's Null. Why is it Null? Isn't it supposed to have some data in here?

Oh, and BTW it's a textarea, if that makes a difference.