Righto, cheers, I haven't been creating the submenus with gadgets
Ah, OK, that would explain the confusion... ;-)
Is this out of date now then?
Well, not really out of date, more that it's bad practice as you no longer have *any* references to the sub-menu just created with which you would use to disable/enable or free (delete) the menu. It's best practice to store a handle to all gadgets you create somewhere in your program.