Table of Contents

Interface IComponentEventSink

Namespace
RDCore.Forms.Model
Assembly
RDCore.Forms.dll

Receives the events a running form's components raise, for the code that handles them.

public interface IComponentEventSink

Remarks

A control raises an event to the sink with the component that raised it, the event, and its arguments in the order of Parameters. A control array's Index is not among them: Index gives it. Which procedures handle the event, and in which order, is the sink's to decide.

Methods

Raise(ComponentInstance, EventDefinition, FormValue[])

Raises an event of a component, and returns once its handlers have run.

void Raise(ComponentInstance source, EventDefinition definition, FormValue[] arguments)

Parameters

source ComponentInstance

The component that raised the event.

definition EventDefinition

The event raised.

arguments FormValue[]

The event's arguments. A handler's assignment to an argument is written back into this array, which is how a control reads what a handler made of a KeyAscii or a Cancel.