Am 02.07.2015 um 18:29 schrieb Jens -libreoffice-:
Hallo Günter,
Mein Problem:
Ich habe bisher herausgekriegt, wie man einen einen Mausklick in ein
Calc-Feld erkennt und verarbeitet, wie man die linke, mittlere oder
rechte Maustaste erkennt. Es gibt in der Doku eine Liste, die angibt,
was man noch alles erkennen kann:
Mouse moved
Mouse moved while key pressed
Mouse button pressed
Mouse button released
Mouse outside
Ich habe kein Anweisungsbeispiel gefunden, wie man das programmieren
kann.
Hilft Dir das weiter:
https://wiki.openoffice.org/wiki/Documentation/BASIC_Guide/Events
Jens
Entschuldigung, ich war ein paar Tage verhindert.
Soweit war ich auch schon.
Unter xMouseListener.html#mousePressed findet man z.B. folgende Info:
*Base Interfaces*
*XMouseListener*
┗ ::com::sun::star::lang
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/module-ix.html>::XEventListener
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/XEventListener.html>
::com::sun::star::lang
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/module-ix.html>::XEventListener
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/lang/XEventListener.html>
(referenced interface's summary:)
base interface for all event listeners interfaces.
*Description*
makes it possible to receive events from the mouse in a certain window.
und dann noch eine Liste mit den Methods' Summary
mousePressed
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XMouseListener.html#mousePressed>
is invoked when a mouse button has been pressed on a window.
mouseReleased
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XMouseListener.html#mouseReleased>
is invoked when a mouse button has been released on a window.
mouseEntered
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XMouseListener.html#mouseEntered>
is invoked when the mouse enters a window.
mouseExited
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XMouseListener.html#mouseExited>
is invoked when the mouse exits a window.
mousePressed
[oneway] void
*mousePressed*( [in]MouseEvent
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/MouseEvent.html>
e );
------------------------------------------------------------------------
*Description*
is invoked when a mouse button has been pressed on a window.
Since mouse presses are usually also used to indicate requests for
popup menus (also known as context menus) on objects, you might
receive two events for a single mouse press: For example, if, on
your operating system, pressing the right mouse button indicates the
request for a context menu, then you will receive one call
tomousePressed
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XMouseListener.html#mousePressed>indicating
the mouse click, and another one indicating the context menu
request. For the latter, theMouseEvent
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/MouseEvent.html>::PopupTrigger
<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/MouseEvent.html#PopupTrigger>member
of the event will be set to*true*.
Wenn es doch ein einfaches Beispiel gäbe, wie man die einzelnen
Bruchstücke sinvoll zusammensetzt.
Nochmal vielen Dank für die schnelle erste Antwort
MfG
Günter Fritze
--
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? http://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: http://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: http://listarchives.libreoffice.org/de/users/
Alle E-Mails an diese Liste werden unlöschbar öffentlich archiviert
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.