menu bar refresh problem between modal and not modal forms

Author: vojta@incad.cz (vojta)

We have problem with menu refresh. When turn back from child modal form to parent nonmodal form (with tabs),Menu bar from of child modal window is still visible. It is visible even if child component instance is deleted and we explicitly call SetFormFocus to original component. User must click to window area of non-modal window to fully activate it and display correct menu bar. The non-modal component menu bar is defined on component level for main modal form and for it's tabs.   The same problem sometimes appears when child component is non-modal.