DIAdem Help

Alignment Functions in DIAdem VIEW

  • Updated2024-09-12
  • 1 minute(s) read

Alignment Functions in DIAdem VIEW

This example offers functions for aligning the axis margins in axis systems and in contour displays. Use this function, for example, to align axes of contour displays that contain a color legend and of axes systems in a layout. You can then compare the cursor positions more accurately.

To do so the example creates the new function group Alignment Functions on the toolbar of DIAdem VIEW. This function group contains functions for aligning the distance of the x-axes and the y-axes to the edge of the respective area. The largest margin in the layout is the reference. You can align the margins in the selected area or in all areas. The example uses the properties XAxisMarginMode, YAxisMarginMode, XAxisMargin, and YAxisMargin to align the axes of the axis systems and contour displays. Other alignment functions are used to set the legends of the 2D axis systems to the same width. To do this, the example uses the LegendWidth property.

This function group contains functions for restoring the margins to the default width and for deleting the function group from the toolbar.

DIAdem uses the BarManager object to create the function group.

Start example

Click a filename to load this file into DIAdem.

VIEW_SetMarginInit.vbs Script file
VIEW_SetMarginLibr.vbs Script file
VIEW_*Margin*.ico Symbol files
VIEW_LegendAlign*.ico Symbol files

Log in to get a better experience