I'm working on redoing up the FRED2 sexp popup menus (hoping to have it done before the Christmas release) but I've hit a wall.
What I'm trying to do is add another level of submenus to each category, depending on whether the sexp is in a particular subcategory. So the Change sexps are further divided into Messaging and Mission Goals, AI and IFF, Beams and Turrets, etc. I want to leave it customizable, like

's category system, and I'm only subcategorizing the Change sexps (since that's by far the biggest list). I think this will speed up FREDding tremendously, because it'll cut the time spent searching for a particular sexp (as well as time spent scrolling) to almost nil.
I think I've hit upon a way to do this, but the only problem is I can't select any of my submenus - they're all greyed out. I checked through the code and I have no idea why this is the case.
I've attached the file I'm working on. (I'd post a screenshot, but you can't take screenshots of menus in action.) With a fully-updated CVS project, the thing will compile and you can see what's going on -- start FRED2, make a new event, and try to replace the do-nothing sexp. Other than the do-nothing sexp itself (which I didn't subcategorize), nothing in the Change menu is enabled.
Any help?
