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

A forum devoted to the discussion of all topics having to do with scripting and other advanced programming using iX Developer.
Post Reply
JimBob
Posts: 2
Joined: Wed Nov 09, 2011 4:35 am

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

Post 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

User avatar
Ron L.
Posts: 214
Joined: Fri Jul 15, 2011 3:21 pm

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

Post 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);
		}
    }
Best Regards,

Beijer Electronics, Inc.
Ron Lloyd | Applications Engineer

JimBob
Posts: 2
Joined: Wed Nov 09, 2011 4:35 am

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

Post by JimBob »

Cool, thanks 8-)

Post Reply