[Bug 1486] New: Dynamically created menus do not work in Delphi apps