1*b1cdbd2cSJim Jagielski<?xml version="1.0" encoding="UTF-8"?>
2*b1cdbd2cSJim Jagielski<helpdocument version="1.0">
3*b1cdbd2cSJim Jagielski
4*b1cdbd2cSJim Jagielski<!--***********************************************************
5*b1cdbd2cSJim Jagielski *
6*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one
7*b1cdbd2cSJim Jagielski * or more contributor license agreements.  See the NOTICE file
8*b1cdbd2cSJim Jagielski * distributed with this work for additional information
9*b1cdbd2cSJim Jagielski * regarding copyright ownership.  The ASF licenses this file
10*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the
11*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance
12*b1cdbd2cSJim Jagielski * with the License.  You may obtain a copy of the License at
13*b1cdbd2cSJim Jagielski *
14*b1cdbd2cSJim Jagielski *   http://www.apache.org/licenses/LICENSE-2.0
15*b1cdbd2cSJim Jagielski *
16*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing,
17*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an
18*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
19*b1cdbd2cSJim Jagielski * KIND, either express or implied.  See the License for the
20*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations
21*b1cdbd2cSJim Jagielski * under the License.
22*b1cdbd2cSJim Jagielski *
23*b1cdbd2cSJim Jagielski ***********************************************************-->
24*b1cdbd2cSJim Jagielski
25*b1cdbd2cSJim Jagielski
26*b1cdbd2cSJim Jagielski
27*b1cdbd2cSJim Jagielski
28*b1cdbd2cSJim Jagielski<meta>
29*b1cdbd2cSJim Jagielski      <topic id="textshared0201170103xml" indexer="include" status="PUBLISH">
30*b1cdbd2cSJim Jagielski         <title xml-lang="en-US" id="tit">Events</title>
31*b1cdbd2cSJim Jagielski         <filename>/text/shared/02/01170103.xhp</filename>
32*b1cdbd2cSJim Jagielski      </topic>
33*b1cdbd2cSJim Jagielski   </meta>
34*b1cdbd2cSJim Jagielski   <body>
35*b1cdbd2cSJim Jagielski      <section id="ereignisse">
36*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="index" id="bm_id3148643"><bookmark_value>controls; events</bookmark_value>
37*b1cdbd2cSJim Jagielski         <bookmark_value>events; controls</bookmark_value>
38*b1cdbd2cSJim Jagielski         <bookmark_value>macros; assigning to events in forms</bookmark_value>
39*b1cdbd2cSJim Jagielski</bookmark>
40*b1cdbd2cSJim Jagielski<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>
41*b1cdbd2cSJim Jagielski         <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>
42*b1cdbd2cSJim Jagielski      </section>
43*b1cdbd2cSJim Jagielski      <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>
44*b1cdbd2cSJim Jagielski</caseinline><defaultinline>dialog</defaultinline></switchinline> opens.</paragraph>
45*b1cdbd2cSJim Jagielski      <section id="howtoget">
46*b1cdbd2cSJim Jagielski         <embed href="text/shared/00/00040501.xhp#controleigenschaftenereignisse"/>
47*b1cdbd2cSJim Jagielski      </section>
48*b1cdbd2cSJim Jagielski      <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>
49*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_APPROVEACTIONPERFORMED" id="bm_id3153252" localize="false"/>
50*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3149191" role="heading" level="2" l10n="CHG"
51*b1cdbd2cSJim Jagielski                 oldref="12">Approve action<comment>renamed from Before commencing, issue 97356</comment></paragraph>
52*b1cdbd2cSJim Jagielski      <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>
53*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ACTIONPERFORMED" id="bm_id3155923" localize="false"/>
54*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3156024" role="heading" level="2" l10n="CHG"
55*b1cdbd2cSJim Jagielski                 oldref="36">Execute action<comment>renamed from When initiated, issue 97356</comment></paragraph>
56*b1cdbd2cSJim Jagielski      <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>
57*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_CHANGED" id="bm_id3154924" localize="false"/>
58*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3156343" role="heading" level="2" l10n="U"
59*b1cdbd2cSJim Jagielski                 oldref="41">Changed</paragraph>
60*b1cdbd2cSJim Jagielski      <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>
61*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_TEXTCHANGED" id="bm_id3147084" localize="false"/>
62*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3153524" role="heading" level="2" l10n="U"
63*b1cdbd2cSJim Jagielski                 oldref="10">Text modified</paragraph>
64*b1cdbd2cSJim Jagielski      <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>
65*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ITEMSTATECHANGED" id="bm_id3154910" localize="false"/>
66*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3154123" role="heading" level="2" l10n="U" oldref="8">Item status changed</paragraph>
67*b1cdbd2cSJim Jagielski      <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>
68*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSGAINED" id="bm_id3158407" localize="false"/>
69*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3151176" role="heading" level="2" l10n="U"
70*b1cdbd2cSJim Jagielski                 oldref="16">When receiving focus</paragraph>
71*b1cdbd2cSJim Jagielski      <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>
72*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSLOST" id="bm_id3154684" localize="false"/>
73*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3150447" role="heading" level="2" l10n="U"
74*b1cdbd2cSJim Jagielski                 oldref="18">When losing focus</paragraph>
75*b1cdbd2cSJim Jagielski      <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>
76*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYTYPED" id="bm_id3145787" localize="false"/>
77*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3147287" role="heading" level="2" l10n="U"
78*b1cdbd2cSJim Jagielski                 oldref="20">Key pressed</paragraph>
79*b1cdbd2cSJim Jagielski      <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>
80*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYUP" id="bm_id3145264" localize="false"/>
81*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3154127" role="heading" level="2" l10n="U"
82*b1cdbd2cSJim Jagielski                 oldref="43">Key released</paragraph>
83*b1cdbd2cSJim Jagielski      <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>
84*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEENTERED" id="bm_id3155368" localize="false"/>
85*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3154921" role="heading" level="2" l10n="U"
86*b1cdbd2cSJim Jagielski                 oldref="26">Mouse inside</paragraph>
87*b1cdbd2cSJim Jagielski      <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>
88*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEDRAGGED" id="bm_id3159180" localize="false"/>
89*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3148576" role="heading" level="2" l10n="U"
90*b1cdbd2cSJim Jagielski                 oldref="30">Mouse moved while key pressed</paragraph>
91*b1cdbd2cSJim Jagielski      <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>
92*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEMOVED" id="bm_id3147443" localize="false"/>
93*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3149262" role="heading" level="2" l10n="U"
94*b1cdbd2cSJim Jagielski                 oldref="32">Mouse moved</paragraph>
95*b1cdbd2cSJim Jagielski      <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>
96*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEPRESSED" id="bm_id3145366" localize="false"/>
97*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3159197" role="heading" level="2" l10n="U"
98*b1cdbd2cSJim Jagielski                 oldref="22">Mouse button pressed</paragraph>
99*b1cdbd2cSJim Jagielski      <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>
100*b1cdbd2cSJim Jagielski      <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>
101*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSERELEASED" id="bm_id3144766" localize="false"/>
102*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3148880" role="heading" level="2" l10n="U"
103*b1cdbd2cSJim Jagielski                 oldref="24">Mouse button released</paragraph>
104*b1cdbd2cSJim Jagielski      <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>
105*b1cdbd2cSJim Jagielski<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEEXITED" id="bm_id3150094" localize="false"/>
106*b1cdbd2cSJim Jagielski<paragraph xml-lang="en-US" id="hd_id3156286" role="heading" level="2" l10n="U"
107*b1cdbd2cSJim Jagielski                 oldref="28">Mouse outside</paragraph>
108*b1cdbd2cSJim Jagielski      <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>
109*b1cdbd2cSJim Jagielski      <embed href="text/shared/02/01170202.xhp#reset_update"/>
110*b1cdbd2cSJim Jagielski   </body>
111*b1cdbd2cSJim Jagielski</helpdocument>