Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Engineering

Hiding Forms when Exiting Applications

  • Last UpdatedNov 14, 2022
  • 1 minute read

!!appFormCntrl controls the hiding of forms. When switching between applications, if a form is shown as a child of the main form and is not registered to be shown in the new application, then it is hidden. (Descendants of this form will therefore also be hidden.)

Dockable forms are shown as free forms, so will be not be closed. However, the effect can still be achieved by registering the form in just one application with the argument !showOnSwitch set to false:

!visibleInApps[1] = 'APP'

!!appFormCntrl.registerForm(!form, !visibleInApps, ARRAY(), false, false)

The form will be hidden when switching from the application 'APP' and will not be shown next time the application is started.

Related Links
TitleResults for “How to create a CRG?”Also Available in