Setup

Description

The Setup Block is only available for Package/Forms. When the form is displayed the Setup block list runs to perform any actions that can only occur after the Form and related Windows Controls are present. Sometimes such blocks are placed under an Autostart block however this is too early. Autostart occurs before the form appears which causes a fault. If a Form is configured as a Pop-Up form the Setup Event will occur every time the form pops-up.

These blocks are unique to each Package/Form. When the Event is dragged from the list on the left onto the Workpage it is removed from the list on the left. If you attempt to duplicate the block you receive this error:

Escapes

The Setup block does not generate any escapes.

Examples

This Setup Event produces lines to make a form look like graph paper:

... which looks like this:

This Setup Event initializes a list box with a series of numbers:

Related Topics

Mouse Drag
Mouse Up
Mouse Position X
Mouse Position Y
Set Coordinate Frame