Swipe function?

Creating a macro - Writing a Script - Using the API

Swipe function?

Postby Novardi » Tue Feb 05, 2019 9:38 pm

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!
Posts: 3
Joined: Sat Feb 02, 2019 11:25 am

Re: Swipe function?

Postby JeJe » Tue Feb 05, 2019 10:18 pm

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

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:


Unless you know how to code and want to spend a lot of time trying and perhaps failing...
Openoffice 4.1.2
Windows 8
Posts: 481
Joined: Wed Mar 09, 2016 2:40 pm

Return to Macros and UNO API

Who is online

Users browsing this forum: No registered users and 9 guests