1cdf0e10cSrcweir<?xml version="1.0" encoding="UTF-8"?> 2cdf0e10cSrcweir 3122b4424SAndrew Rist<!--*********************************************************** 4cdf0e10cSrcweir * 5122b4424SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 6122b4424SAndrew Rist * or more contributor license agreements. See the NOTICE file 7122b4424SAndrew Rist * distributed with this work for additional information 8122b4424SAndrew Rist * regarding copyright ownership. The ASF licenses this file 9122b4424SAndrew Rist * to you under the Apache License, Version 2.0 (the 10122b4424SAndrew Rist * "License"); you may not use this file except in compliance 11122b4424SAndrew Rist * with the License. You may obtain a copy of the License at 12cdf0e10cSrcweir * 13122b4424SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 14cdf0e10cSrcweir * 15122b4424SAndrew Rist * Unless required by applicable law or agreed to in writing, 16122b4424SAndrew Rist * software distributed under the License is distributed on an 17122b4424SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 18122b4424SAndrew Rist * KIND, either express or implied. See the License for the 19122b4424SAndrew Rist * specific language governing permissions and limitations 20122b4424SAndrew Rist * under the License. 21cdf0e10cSrcweir * 22122b4424SAndrew Rist ***********************************************************--> 23122b4424SAndrew Rist 24cd3ec106Smseidel<helpdocument version="1.0"> 25cdf0e10cSrcweir<meta> 26cdf0e10cSrcweir<topic id="textshared0201170103xml" indexer="include" status="PUBLISH"> 27cdf0e10cSrcweir<title xml-lang="en-US" id="tit">Events</title> 28cdf0e10cSrcweir<filename>/text/shared/02/01170103.xhp</filename> 29cdf0e10cSrcweir</topic> 30cdf0e10cSrcweir</meta> 31cdf0e10cSrcweir<body> 32cdf0e10cSrcweir<section id="ereignisse"> 33cd3ec106Smseidel<bookmark xml-lang="en-US" branch="index" id="bm_id3148643"> 34cd3ec106Smseidel<bookmark_value>controls; events</bookmark_value> 35cdf0e10cSrcweir<bookmark_value>events; controls</bookmark_value> 36cdf0e10cSrcweir<bookmark_value>macros; assigning to events in forms</bookmark_value> 37cdf0e10cSrcweir</bookmark> 38*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3148643" role="heading" level="1" l10n="U"><link href="text/shared/02/01170103.xhp" name="Events">Events</link></paragraph> 39*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3152350" role="paragraph" l10n="U">On the <emph>Events</emph> tab page you can link macros to events that occur in a form's control fields.</paragraph> 40cdf0e10cSrcweir</section> 41*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3155419" role="paragraph" l10n="U">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> 42cdf0e10cSrcweir</caseinline><defaultinline>dialog</defaultinline></switchinline> opens.</paragraph> 43cdf0e10cSrcweir<section id="howtoget"> 44cdf0e10cSrcweir<embed href="text/shared/00/00040501.xhp#controleigenschaftenereignisse"/> 45cdf0e10cSrcweir</section> 46*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3149732" role="paragraph" l10n="U">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> 47cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_APPROVEACTIONPERFORMED" id="bm_id3153252" localize="false"/> 48*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3149191" role="heading" level="2" l10n="CHG">Approve action<comment>renamed from Before commencing, issue 97356</comment></paragraph> 49*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3153717" role="paragraph" l10n="CHG"><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> 50cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ACTIONPERFORMED" id="bm_id3155923" localize="false"/> 51*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3156024" role="heading" level="2" l10n="CHG">Execute action<comment>renamed from When initiated, issue 97356</comment></paragraph> 52*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3145609" role="paragraph" l10n="CHG"><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> 53cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_CHANGED" id="bm_id3154924" localize="false"/> 54*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3156343" role="heading" level="2" l10n="U">Changed</paragraph> 55*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3148755" role="paragraph" l10n="U"><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> 56cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_TEXTCHANGED" id="bm_id3147084" localize="false"/> 57*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3153524" role="heading" level="2" l10n="U">Text modified</paragraph> 58*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3150495" role="paragraph" l10n="U"><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> 59cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_ITEMSTATECHANGED" id="bm_id3154910" localize="false"/> 60*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3154123" role="heading" level="2" l10n="U">Item status changed</paragraph> 61*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3150870" role="paragraph" l10n="U"><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> 62cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSGAINED" id="bm_id3158407" localize="false"/> 63*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3151176" role="heading" level="2" l10n="U">When receiving focus</paragraph> 64*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3154218" role="paragraph" l10n="U"><ahelp hid="HID_EVT_FOCUSGAINED">The <emph>When receiving focus</emph> event takes place if a control field receives the focus.</ahelp></paragraph> 65cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_FOCUSLOST" id="bm_id3154684" localize="false"/> 66*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3150447" role="heading" level="2" l10n="U">When losing focus</paragraph> 67*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3159252" role="paragraph" l10n="U"><ahelp hid="HID_EVT_FOCUSLOST">The <emph>When losing focus</emph> event takes place if a control field looses the focus.</ahelp></paragraph> 68cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYTYPED" id="bm_id3145787" localize="false"/> 69*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3147287" role="heading" level="2" l10n="U">Key pressed</paragraph> 70*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3152940" role="paragraph" l10n="U"><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> 71cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_KEYUP" id="bm_id3145264" localize="false"/> 72*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3154127" role="heading" level="2" l10n="U">Key released</paragraph> 73*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3154150" role="paragraph" l10n="U"><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> 74cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEENTERED" id="bm_id3155368" localize="false"/> 75*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3154921" role="heading" level="2" l10n="U">Mouse inside</paragraph> 76*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3148618" role="paragraph" l10n="U"><ahelp hid="HID_EVT_MOUSEENTERED">The <emph>Mouse inside</emph> event takes place if the mouse is inside the control field.</ahelp></paragraph> 77cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEDRAGGED" id="bm_id3159180" localize="false"/> 78*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3148576" role="heading" level="2" l10n="U">Mouse moved while key pressed</paragraph> 79*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3155411" role="paragraph" l10n="U"><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> 80cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEMOVED" id="bm_id3147443" localize="false"/> 81*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3149262" role="heading" level="2" l10n="U">Mouse moved</paragraph> 82*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3146975" role="paragraph" l10n="U"><ahelp hid="HID_EVT_MOUSEMOVED">The <emph>Mouse moved</emph> event occurs if the mouse moves over the control.</ahelp></paragraph> 83cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEPRESSED" id="bm_id3145366" localize="false"/> 84*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3159197" role="heading" level="2" l10n="U">Mouse button pressed</paragraph> 85*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3145271" role="paragraph" l10n="U"><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> 86cdf0e10cSrcweir<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> 87cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSERELEASED" id="bm_id3144766" localize="false"/> 88*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3148880" role="heading" level="2" l10n="U">Mouse button released</paragraph> 89*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3150659" role="paragraph" l10n="U"><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> 90cdf0e10cSrcweir<bookmark xml-lang="en-US" branch="hid/EXTENSIONS_HID_EVT_MOUSEEXITED" id="bm_id3150094" localize="false"/> 91*80b082deSmseidel<paragraph xml-lang="en-US" id="hd_id3156286" role="heading" level="2" l10n="U">Mouse outside</paragraph> 92*80b082deSmseidel<paragraph xml-lang="en-US" id="par_id3149582" role="paragraph" l10n="U"><ahelp hid="HID_EVT_MOUSEEXITED">The <emph>Mouse outside</emph> event takes place when the mouse is outside the control field.</ahelp></paragraph> 93cdf0e10cSrcweir<embed href="text/shared/02/01170202.xhp#reset_update"/> 94cdf0e10cSrcweir</body> 95cdf0e10cSrcweir</helpdocument> 96