1*cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?>
2*cdf0e10cSrcweir<helpdocument version="1.0">
3*cdf0e10cSrcweir
4*cdf0e10cSrcweir<!--
5*cdf0e10cSrcweir***********************************************************************
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
12*cdf0e10cSrcweir *
13*cdf0e10cSrcweir * This file is part of OpenOffice.org.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
16*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
17*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
18*cdf0e10cSrcweir *
19*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
20*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
21*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
23*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
24*cdf0e10cSrcweir *
25*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
26*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
27*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
28*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
29*cdf0e10cSrcweir *
30*cdf0e10cSrcweir ************************************************************************
31*cdf0e10cSrcweir -->
32*cdf0e10cSrcweir
33*cdf0e10cSrcweir
34*cdf0e10cSrcweir<meta>
35*cdf0e10cSrcweir      <topic id="textshared0201170103xml" indexer="include" status="PUBLISH">
36*cdf0e10cSrcweir         <title xml-lang="en-US" id="tit">Events</title>
37*cdf0e10cSrcweir         <filename>/text/shared/02/01170103.xhp</filename>
38*cdf0e10cSrcweir      </topic>
39*cdf0e10cSrcweir   </meta>
40*cdf0e10cSrcweir   <body>
41*cdf0e10cSrcweir      <section id="ereignisse">
42*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="index" id="bm_id3148643"><bookmark_value>controls; events</bookmark_value>
43*cdf0e10cSrcweir         <bookmark_value>events; controls</bookmark_value>
44*cdf0e10cSrcweir         <bookmark_value>macros; assigning to events in forms</bookmark_value>
45*cdf0e10cSrcweir</bookmark>
46*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3148643" role="heading" level="1" l10n="U" oldref="1"><link href="text/shared/02/01170103.xhp" name="Events">Events</link></paragraph>
47*cdf0e10cSrcweir         <paragraph xml-lang="en-US" id="par_id3152350" role="paragraph" l10n="U" oldref="2">On the<emph> Events </emph>tab page you can link macros to events that occur in a form's control fields.</paragraph>
48*cdf0e10cSrcweir      </section>
49*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3155419" role="paragraph" l10n="U" oldref="40">When the event occurs, the linked macro will be called. To assign a macro to an event, press the <emph>...</emph> button. An <switchinline select="appl"><caseinline select="WRITER"><link href="text/swriter/01/05060700.xhp" name="Assign Macro">Assign Macro</link>
50*cdf0e10cSrcweir</caseinline><defaultinline>dialog</defaultinline></switchinline> opens.</paragraph>
51*cdf0e10cSrcweir      <section id="howtoget">
52*cdf0e10cSrcweir         <embed href="text/shared/00/00040501.xhp#controleigenschaftenereignisse"/>
53*cdf0e10cSrcweir      </section>
54*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3149732" role="paragraph" l10n="U" oldref="3">Depending on the control, different events are available. Only the available events for the selected control and context are listed on the <emph>Events</emph> tab page. The following events are defined:</paragraph>
55*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_APPROVEACTIONPERFORMED" id="bm_id3153252" localize="false"/>
56*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3149191" role="heading" level="2" l10n="CHG"
57*cdf0e10cSrcweir                 oldref="12">Approve action<comment>renamed from Before commencing, issue 97356</comment></paragraph>
58*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3153717" role="paragraph" l10n="CHG" oldref="13"><ahelp hid="HID_EVT_APPROVEACTIONPERFORMED">This event takes place before an action is triggered by clicking the control.</ahelp> For example, clicking a "Submit" button initiates a send action; however, the actual "send" process is started only when the <emph>When initiating</emph> event occurs. The <emph>Approve action</emph> event allows you to kill the process. If the linked method sends back FALSE, <emph>When initiating</emph> will not be executed.</paragraph>
59*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ACTIONPERFORMED" id="bm_id3155923" localize="false"/>
60*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3156024" role="heading" level="2" l10n="CHG"
61*cdf0e10cSrcweir                 oldref="36">Execute action<comment>renamed from When initiated, issue 97356</comment></paragraph>
62*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3145609" role="paragraph" l10n="CHG" oldref="37"><ahelp hid="HID_EVT_ACTIONPERFORMED">The <emph>Execute action</emph> event occurs when an action is started.</ahelp> For example, if you have a "Submit" button in your form, the send process represents the action to be initiated.</paragraph>
63*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_CHANGED" id="bm_id3154924" localize="false"/>
64*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3156343" role="heading" level="2" l10n="U"
65*cdf0e10cSrcweir                 oldref="41">Changed</paragraph>
66*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3148755" role="paragraph" l10n="U" oldref="42"><ahelp hid="HID_EVT_CHANGED">The<emph> Changed </emph>event takes place when the control loses the focus and the content of the control has changed since it lost the focus.</ahelp></paragraph>
67*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_TEXTCHANGED" id="bm_id3147084" localize="false"/>
68*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3153524" role="heading" level="2" l10n="U"
69*cdf0e10cSrcweir                 oldref="10">Text modified</paragraph>
70*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3150495" role="paragraph" l10n="U" oldref="11"><ahelp hid="HID_EVT_TEXTCHANGED">The<emph> Text modified </emph>event takes place if you enter or modify a text in an input field.</ahelp></paragraph>
71*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ITEMSTATECHANGED" id="bm_id3154910" localize="false"/>
72*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3154123" role="heading" level="2" l10n="U" oldref="8">Item status changed</paragraph>
73*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3150870" role="paragraph" l10n="U" oldref="9"><ahelp hid="HID_EVT_ITEMSTATECHANGED" visibility="hidden">The<emph> Item status changed </emph>event takes place if the status of the control field has changed.</ahelp>The<emph> Item status changed</emph> event takes place if he status of the control field has changed.</paragraph>
74*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSGAINED" id="bm_id3158407" localize="false"/>
75*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3151176" role="heading" level="2" l10n="U"
76*cdf0e10cSrcweir                 oldref="16">When receiving focus</paragraph>
77*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3154218" role="paragraph" l10n="U" oldref="17"><ahelp hid="HID_EVT_FOCUSGAINED">The<emph> When receiving focus </emph>event takes place if a control field receives the focus.</ahelp></paragraph>
78*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSLOST" id="bm_id3154684" localize="false"/>
79*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3150447" role="heading" level="2" l10n="U"
80*cdf0e10cSrcweir                 oldref="18">When losing focus</paragraph>
81*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3159252" role="paragraph" l10n="U" oldref="19"><ahelp hid="HID_EVT_FOCUSLOST">The<emph> When losing focus </emph>event takes place if a control field looses the focus.</ahelp></paragraph>
82*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYTYPED" id="bm_id3145787" localize="false"/>
83*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3147287" role="heading" level="2" l10n="U"
84*cdf0e10cSrcweir                 oldref="20">Key pressed</paragraph>
85*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3152940" role="paragraph" l10n="U" oldref="21"><ahelp hid="HID_EVT_KEYTYPED">The <emph>Key pressed </emph>event occurs when the user presses any key while the control has the focus.</ahelp> This event may be linked to a macro for checking entries.</paragraph>
86*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYUP" id="bm_id3145264" localize="false"/>
87*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3154127" role="heading" level="2" l10n="U"
88*cdf0e10cSrcweir                 oldref="43">Key released</paragraph>
89*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3154150" role="paragraph" l10n="U" oldref="44"><ahelp hid="HID_EVT_KEYUP">The<emph> Key released </emph>event occurs when the user releases any key while the control has the focus.</ahelp></paragraph>
90*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEENTERED" id="bm_id3155368" localize="false"/>
91*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3154921" role="heading" level="2" l10n="U"
92*cdf0e10cSrcweir                 oldref="26">Mouse inside</paragraph>
93*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3148618" role="paragraph" l10n="U" oldref="27"><ahelp hid="HID_EVT_MOUSEENTERED">The<emph> Mouse inside </emph>event takes place if the mouse is inside the control field.</ahelp></paragraph>
94*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEDRAGGED" id="bm_id3159180" localize="false"/>
95*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3148576" role="heading" level="2" l10n="U"
96*cdf0e10cSrcweir                 oldref="30">Mouse moved while key pressed</paragraph>
97*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3155411" role="paragraph" l10n="U" oldref="31"><ahelp hid="HID_EVT_MOUSEDRAGGED">The<emph> Mouse moved while key pressed </emph>event takes place when the mouse is dragged while a key is pressed.</ahelp> An example is when, during drag-and-drop, an additional key determines the mode (move or copy).</paragraph>
98*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEMOVED" id="bm_id3147443" localize="false"/>
99*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3149262" role="heading" level="2" l10n="U"
100*cdf0e10cSrcweir                 oldref="32">Mouse moved</paragraph>
101*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3146975" role="paragraph" l10n="U" oldref="33"><ahelp hid="HID_EVT_MOUSEMOVED">The<emph> Mouse moved </emph>event occurs if the mouse moves over the control.</ahelp></paragraph>
102*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEPRESSED" id="bm_id3145366" localize="false"/>
103*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3159197" role="heading" level="2" l10n="U"
104*cdf0e10cSrcweir                 oldref="22">Mouse button pressed</paragraph>
105*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3145271" role="paragraph" l10n="U" oldref="23"><ahelp hid="HID_EVT_MOUSEPRESSED">The<emph> Mouse button pressed </emph>event occurs if the mouse button is pressed while the mouse pointer is on the control.</ahelp></paragraph>
106*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_idN108BD" role="note" l10n="NEW">Note that this event is also used for notifying requests for a popup context menu on the control.</paragraph>
107*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSERELEASED" id="bm_id3144766" localize="false"/>
108*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3148880" role="heading" level="2" l10n="U"
109*cdf0e10cSrcweir                 oldref="24">Mouse button released</paragraph>
110*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3150659" role="paragraph" l10n="U" oldref="25"><ahelp hid="HID_EVT_MOUSERELEASED">The<emph> Mouse button released </emph>event occurs if the mouse button is released while the mouse pointer is on the control.</ahelp></paragraph>
111*cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEEXITED" id="bm_id3150094" localize="false"/>
112*cdf0e10cSrcweir<paragraph xml-lang="en-US" id="hd_id3156286" role="heading" level="2" l10n="U"
113*cdf0e10cSrcweir                 oldref="28">Mouse outside</paragraph>
114*cdf0e10cSrcweir      <paragraph xml-lang="en-US" id="par_id3149582" role="paragraph" l10n="U" oldref="29"><ahelp hid="HID_EVT_MOUSEEXITED">The<emph> Mouse outside </emph>event takes place when the mouse is outside the control field.</ahelp></paragraph>
115*cdf0e10cSrcweir      <embed href="text/shared/02/01170202.xhp#reset_update"/>
116*cdf0e10cSrcweir   </body>
117*cdf0e10cSrcweir</helpdocument>