TouchOnScreen

Discussion of application development using iX Developer, including but not limited to getting started, using the functions tab, properties, objects and installation.
Post Reply
Joyzpa
Posts: 1
Joined: Mon Nov 04, 2013 4:18 am

TouchOnScreen

Post by Joyzpa »

Hello!

New to the forum so i hope this is in right place ;)

I need a bit of help in scripting.

I would like to run a script every time there is a MouseDown on screen. And i mean that this MouseDown doesn't have to be on any object like button. So when i put my finger anywhere on the screen this MouseDown event handler would trigger and run my script.

Is there this kind of "system" MouseDown trigger already in the IX or can it be created?

Joyzpa

User avatar
Russ C.
Posts: 213
Joined: Thu Nov 16, 2017 3:32 pm
Contact:

Re: TouchOnScreen

Post by Russ C. »

in iX Developer you can hook into a Global MouseDown event using something:

Code: Select all

void OnScreenOpened(){
MouseDown += MyCustomMouseDown_Function;
}

Make sure to unhook if the screen closes to prevent memory leaks:

Code: Select all

void OnScreenClosed(){
MouseDown -= MyCustomMouseDown_Function;
}
Best regards,

Russ
(801) 708-6690
Technical Support
Contact Us

Beijer Electronics AB
http://www.beijerelectronics.us

Post Reply