Complete redesign of the user function menu system.
This is now more flexible and should be more compatible with window ordering under MS Windows.
Authored by: bugman 2011-09-13
Parent: [r14623]
Child: [r14625]