ButtonClicked event

For regular buttons, this event is executed when the user clicks on a button.

ValidationForm_ButtonClicked(_
    ByVal ButtonName As String, _
    ByVal pXDoc As CASCADELib.CscXDocument)
ButtonName

Name of the button control that is clicked.

pXDoc

XDocument object that is currently loaded.

For example, you can configure a button so clicking it changes the lasso behavior. In the Crop mode, the button text reads Mode: Crop, and lassoing an area of the image inserts the selection into the MiniViewer, but does not change the field value. On the other hand, the Mode:Add2Field inserts the lassoed text into both the MiniViewer and the field.

For database lookup buttons, you can also use the ButtonClicked event to define variables that are used later for the ButtonDialogClosed event.