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

AVEVA™ Engineering

Intelligent Resizing

  • Last UpdatedOct 27, 2022
  • 1 minute read

So far, you have considered the static layout of the form, but often the forms need to be resized by you at run-time.

Most gadgets have an ANCHOR attribute and a few support the DOCK attribute. These allow you to define intelligent position and resize behavior when the gadget's container resizes, which allows you to have more than one resizable gadget on the same form.

Note:
The recommended way to build intelligent resizable forms is to initially design the form as a simple (non-resizable) dialog, and get the static layout correct. Then apply the ANCHOR and DOCK attributes to the static gadgets to produce the required dynamic resize effect.

The ANCHOR and DOCK attributes are mutually exclusive. Setting the DOCK attribute resets the ANCHOR to the default; setting the ANCHOR attribute resets DOCK to none.

You can set these attributes only when you define the gadget; you are not allowed to change the resize behavior at run-time.

Note:
VIEW and ALPHA gadgets should always be placed in their own frame, with no other gadgets. Use the DOCK or ANCHOR attributes of the frame to get the behavior wanted.

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