Page 1 of 1

Is there a function to return any touch on a T4A touch panel

Posted: Wed Nov 09, 2011 4:58 am
by JimBob
HI. I have a T4A panel on which I am varying the brightness - the user can set a value or if a new alarm comes in, it is set to maximum brightness for 30 seconds before returning to the set value.

To complete this scheme I need to re-instate full brightness when the screen is touched as well. Is there a function that I can call or use to do this?

I know there is an auto-off feature in the project settings which turns the backlight back on when the panel is touched so hope I can access this.

Cheers

JimBob

Re: Is there a function to return any touch on a T4A touch p

Posted: Thu Nov 10, 2011 10:34 am
by Ron L.
You can access the OnMouseDown event on each screen in script. You would have to put this code in every screen.

Code: Select all

public partial class Screen1
    {
		protected override void OnMouseDown(MouseEventArgs e)
		{
			//Map Tag1 ValueChange Action to Set Backlight
			Globals.Tags.Tag1.ToggleTag();			

			//Forward the event to base objects
			base.OnMouseDown(e);
		}
    }

Re: Is there a function to return any touch on a T4A touch p

Posted: Fri Nov 11, 2011 6:46 am
by JimBob
Cool, thanks 8-)