Swipe function?

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Novardi
Posts: 3
Joined: Sat Feb 02, 2019 11:25 am

Swipe function?

Post by Novardi »

Dear people,

I'm a long time user of both Openoffice and Libreoffice.

I'm trying to create a rough demo, and really simple DEMO that I can show to others.
My greatest wish would be to include a swipe function.

So for example. When someone swipes on an area to left, it goes to cell X. But when someone swipes right on that cell, it jumps to cell Y.
If I could make Text appear from cell Y in to cell X, that would also be a great part of the solution.

I would actually like to knowhow to do this in Calc, but in Draw would be very nice too!

Does anyone know how I can do this?

Thanks in advance
OpenOffice 4.1.5
Windows 7 - SP1
Desktop PC: Intel Core duo - Replaced motherboard Capacitors on my own!
JeJe
Volunteer
Posts: 2779
Joined: Wed Mar 09, 2016 2:40 pm

Re: Swipe function?

Post by JeJe »

You could try a MouseMotionListener.

As you're on Windows the GetMessageExtraInfo Windows API function is for differentiating inputs.
I don't know if it will work from within OOBasic but there is a recent VB6 example on Planet Source Code.

http://www.planet-source-code.com/vb/sc ... 8&lngWId=1

Edit:
Looking into it, there are some later Window's apis for touch gesture support but they don't run on Windows 7 and again they might not work with OO.

OO has a drag gesture listener too but I don't know anything about it or even whether this would be pertinent.

https://www.openoffice.org/api/docs/com ... tener.html

Thread on touch support here:

viewtopic.php?f=5&t=54927

Unless you know how to code and want to spend a lot of time trying and perhaps failing...
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Post Reply