Welcome Guest ( Login | Register )



All times are UTC - 7 hours [ DST ]



Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Is there a function to return any touch on a T4A touch panel
PostPosted: Wed Nov 09, 2011 4:58 am 

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

Offline
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


 Profile  
 
 Post subject: Re: Is there a function to return any touch on a T4A touch p
PostPosted: Thu Nov 10, 2011 10:34 am 
User avatar

Joined: Fri Jul 15, 2011 3:21 pm
Posts: 214

Offline
You can access the OnMouseDown event on each screen in script. You would have to put this code in every screen.

Code:
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


 Profile  
 
 Post subject: Re: Is there a function to return any touch on a T4A touch p
PostPosted: Fri Nov 11, 2011 6:46 am 

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

Offline
Cool, thanks 8-)


 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: