Hide Elements if Form is in tabpanel

How can I hide elements on a form depending on the fact that the form is called standalone or in a tabpanel ?

you can do that in the onshow yourself by looking if it is the current controller.