Author Topic: Actually interfacing with the 12" touchscreen DM1200T  (Read 681 times)

Offline Mike AA

  • PLUS+1 Guru
  • *****
  • Posts: 108
  • Karma: +0/-0
    • Dewind Dewatering
Actually interfacing with the 12" touchscreen DM1200T
« on: August 19, 2020, 08:17:44 PM »
Having a little difficulty matching touchscreen x,y with my program screen editor turned 270 degrees.

The indicator lights are on the left side and my display is orientated vertical, screen editor top left is 0,0.

I put my layout of letters and icons and recorded the x,y coordinates of them. I used that number to do stuff. I click where the icon is and nothing happens.

In the service tool I read the x,y coordinates (touchscreen.stream[0].x, touchscreen.stream[0].y) completely different than the screen editor. How do I get this layout to rotate like my screen editor?

I changed the coordinates in my screen editor to match where I touch and the values from stream but it would be so much easier to use the same values in both screen editor and in real life.

Also, how do you use the touch area components in screen editor??

Thanks,
Mike