<p class="Paragraph">In this tab page, you can link certain events, which can occur in a form's control field, with a macro.</p>
</help:to-be-embedded>
<p class="Paragraph">This macro or this event procedure will be then initiated as soon as the event occurs. This assignment will be realized if you press the<span class="T1"> ... </span>button. A <help:link Id="67665" xmlns:help="http://openoffice.org/2000/help">dialog </help:link>will open which enables you to select the macro.</p>
<p class="Paragraph">Depending on the control, different events can take place. Therefore, only the events that make sense for the control and context currently selected are listed on the <span class="T1">Event</span> tab page. The following events are defined:</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place before the content of the control field is updated from an linked data base.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, after the content of a control field was updated from an attached data </help:help-text></p>
<p class="Head2"><help:help-id value="HID_EVT_ITEMSTATECHANGED" xmlns:help="http://openoffice.org/2000/help"/>Item status changed</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place if the status of the control field is changed.</help:help-text>This event takes place if you select a new entry in a list or a combo box or with a check box or option field if the condition of the control field changes.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if you enter or modify a text in an input field.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event occurs if an action is started.</help:help-text> If, for example, you have a Submit button type in your form, the send process executes the action. The "When executing" event corresponds then the start of the send process. This field is only available if you have inserted normal buttons. It will not be available with graphic buttons.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, if an action is executed by clicking the control field.</help:help-text> Initiating an action is not the same as executing an action. If you click a Submit button, it initiates the "send" action but the send process will start when the "Action performed" event occurs. With "Action started" you have the possibility to choose. If the linked method sends back FALSE, "Action performed" will not be executed.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if a control field receives the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place if a control field looses the focus.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the user presses any key.</help:help-text> For example, this event can be related with a macro input verification.</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the mouse button is pressed.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place if the mouse button is released.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the mouse is inside the control field.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place, when the mouse is outside the control field.</help:help-text></p>
<p class="Head2"><help:help-id value="HID_EVT_MOUSEDRAGGED" xmlns:help="http://openoffice.org/2000/help"/>Mouse dragged while key pressed</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help"> This event takes place when the mouse is dragged while a key is pressed.</help:help-text> An example of this is when during drag and drop an additional key determines the modus (move or copy).</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the mouse is moved.</help:help-text></p>
<p class="Head2">Prior to Reset</p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This happens before the state of the control is reset to its default value.</help:help-text></p>
<p class="Paragraph"><help:help-text value="visible" xmlns:help="http://openoffice.org/2000/help">This event takes place if the status of the control field is reset to its default value using the <help:link Id="65921" Eid="artderschaltflaeche">Reset type</help:link> button.</help:help-text></p>