Called by the framework when a menu with tear-off bar is being activated.
Override this function when you need a special setup for the tear-off bar. The default implementation does nothing.