Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-06

Touchscreen

5 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Koenraad Lelong

Hi,

I'm considering an application that will run on a touchscreen. I made some test-apps, and I think there will be problems with things like scrollbars. Is there a way to make those bigger ? Or is there a way to implement the "swipe" to move items in a list ? The touchscreen is connected to a linux-machine.

Any suggestions ?

Thanks,

Koenraad Lelong

Reply by email

zeljko
to Koenraad Lelong
Koenraad Lelong wrote 9 lines
Hi, I'm considering an application that will run on a touchscreen. I made some test-apps, and I think there will be problems with things like scrollbars. Is there a way to make those bigger ? Or is there a way to implement the "swipe" to move items in a list ? The touchscreen is connected to a linux-machine. Any suggestions ?

I have some apps that uses touchscreen too (qtlcl), and there's nothing in LCL what can say "Touchscreen app", so I'm using workarounds via command line (--touchscreen), so maybe we should add an property to Application which can give some clue to the widgetset about used device ...

zeljko

Reply by email

Den Jean
to zeljko
AM zeljko wrote
I have some apps that uses touchscreen too (qtlcl), and there's nothing

I do not get touch events with qt lcl embedded (beaglebone), I know about,

  QWidget_SetAttribute(QtHandle, QtWA_AcceptTouchEvents);
  QWidget_setAttribute(QtHandle,QtWA_StaticContents);

apparently it works under Windows (qt lcl again)

so where (OS ?) did you get touch event with qt lcl

I am now looking at all the qt lcl eventfilters, perhaps something there could be the cause, but it is not clear

in a straight fpc qt4 binding program I get touch
events without problems.

Regards,

Jan

Reply by email

Malcolm Poole
to Koenraad Lelong: I'm considering an application that will run on a touchscreen. I made some test-apps, and…
Koenraad Lelong wrote
I made some test-apps, and I think there will be problems with things like scrollbars. Is there a way to make those bigger ? Or is there a way to implement the "swipe" to move items in a list ?

I decided to use fpgui for this; because it made it relatively easy to get into the GUI code and make the scrollbars wider.

Another way which I found used by a number of applications (and also by making supermarket cashiers nervous by trying to look at their POS screens) is to hide the scrollbars and have two large buttons alongside, with up/down arrows or forward/back arrows.

Regarding the "swipe", I hadn't thought of it before, but it may be possible to use the mouse scroll events in a touchscreen application, to achieve the same effect.

Malcolm

Reply by email

zeljko
to Den Jean: I do not get touch events with qt lcl embedded (beaglebone),…
Den Jean wrote 9 lines
On Sunday, June 30, 2013 11:17:57 AM zeljko wrote: > I have some apps that uses touchscreen too (qtlcl), and there's nothing I do not get touch events with qt lcl embedded (beaglebone), I know about, QWidget_SetAttribute(QtHandle, QtWA_AcceptTouchEvents); QWidget_setAttribute(QtHandle,QtWA_StaticContents); apparently it works under Windows (qt lcl again) so where (OS ?) did you get touch event with qt lcl

I didn't say that I'm handling touch events, context was about resized some controls for easy handling with touch screens (scrollbars, buttons, height of list items etc etc).

Show quoted text 5 lines
I am now looking at all the qt lcl eventfilters, perhaps something there could be the cause, but it is not clear in a straight fpc qt4 binding program I get touch events without problems.

I'm using only standard mouse events: click/dbl click atm, for more we must go with bindings to at least 4.6 (gestures and other stuff added).

zeljko

Reply by email