Toggle the touch and hold setting on tablet-pc
<p>I'm trying to find a way to enable/disable the touch-and-hold setting for a tablet-pc with immediate effect (no reboot).</p>

<p>I'm creating a delphi application where you can draw a shape by pressing and holding for a set amount of time (immediate swiping is used for panning). The problem is that a press and hold is often used to trigger a right-click event intitiated by a square or circle animation around your finger while holding. The only way I've been successful in hiding this animation/right-click behaviour is by completely disabling the touch-and-hold setting in the configuration screen or in the registry (which needs a reboot.. ). </p>

<p>Now how would I disable this right-click behaviour when my application is focused, but set it back to the default setting when losing focus?</p>

<p>Thanks ;)</p>