05-19-2017 03:40 AM
Hi,
if I click the button with my mouse, it works perfect. But if I use the touchscreen, then the button released correctly, but it still remains highlighted. Only if I touch next to the button somewhere on the frontpanel, then the button returns to normal appearance.
Is it possible to change the appearance programmatically after an event structure?
Note: I use a loop with en event structure to read out the "event" of the button.
Thanks.
05-19-2017 04:02 AM
As i already told you here, you have to move the button terminal into its appropriate event case.
05-19-2017 04:50 AM
I know, but it has no effect. The pc is in "tablet mode". The appearence of the button changes back if I touch next on front panel somewhere.
Maybe, its more a problem of windows 10?!
05-19-2017 06:04 AM
Is it possible that with "highlighted" you refer to "key focus"?
If so, you can add code to remove the key focus from the button in the event case.
05-21-2019 09:40 AM
Did you ever find an answer to this issue?
For further information, I find this issue is a little different on some touchscreen PCs.
For example, on a Surface the button remains highlighted and the appearance changes back after a touch somewhere else (as you've described). On a Lenovo Miix the button remains highlighted and cannot change back (leading to pretty much every button ending up highlighted after a few minutes of use.
I suspect this difference is to do with the way in which touch input is converted into regular mouse input by the device driver