Page 1 of 1

Optimize Touch Support in UCCNC

PostPosted: Sat Jan 05, 2019 9:02 am
by peini7
Hi
i'am planning to use a touch screen monitor for UCCNC because the screenset is already touch-friendly.
But i've noticed that the buttons are not updating acordingly to the touch events.
For example if you touch a button it will not be displayed as "pressed". You allways need to double-tap it.
As far as i know UCCNC is written in WinForms. Maybe an upgrade to a newer .NET version or some other tweaks are needed.
Maybe you can add this to your roadmap please :D

Re: Optimize Touch Support in UCCNC

PostPosted: Sat Jan 05, 2019 1:25 pm
by cncdrive
Yes, the UCCNC runs under .NET and the touch is handled by Windows.
I don't think that upgrading to newer .NET will change anything, however you are right that there are specific touch events in newer .NETs, but we do not need those for the UCCNC, they are special functions, like touch and fingers moves to zoom and drag etc., we don't need those in the UCCNC.
In Windows the simple touch events are handled by Windows and so they should work the same as mouse clicks and that is what is handled in the UCCNC (mouse clicks).
Ofcourse the touch screen drivers can override that and maybe that is the issue at you... I mean it is possible that your touch screen drivers handles things differently overriding the default simple tap (mouse click) command.

Re: Optimize Touch Support in UCCNC

PostPosted: Sat Jan 05, 2019 5:12 pm
by dezsoe
The problem with the touchscreen is not driver dependent, but comes from the standard touch handling. When you touch the screen it will not know what kind of touch will happen, because if you hold the touch then it will turn to right click, or you can drag the point etc. When you release the screen then will Windows send a mouse down and after that a mouse up event. If there was a delay between the two events then you could see the button going down and up, but there's a too short delay.