setSystemCursorEnabled(false) problem
Status: Beta
Brought to you by:
nicarran
Hi Nicolas,
thanks a lots for your job, is great job.
I use jpen-2-150301, in my application i try to set wintabProvider.setSystemCursorEnabled(false);
but in this way the pen events are captures only if the mouse is on the component.
How we can solve it ?
In attach the sample.
Thanks in advice
BR
Marco Perrrone
hi Marco,
If you want to fully prevent the tablet from moving the cursor while changing the focus between various applications then I guess it won't be possible using jpen/wintab. For example, changing the active window (to another application) will cause the wintab context to change and this can cause the tablet device to begin changing the cursor position.
For the sake of testing or understanding this limitation of jpen/wintab you can try something like Test.java :
The ActivableScreenPenOwner.java file is attached. You can run Test.main and try changing focus to other application windows while moving the mouse and the tablet device alternatively. Here is the thread where the previous code was introduced.
Cheers,
Nicolas
Last edit: Nicolas Carranza 2016-01-12
Hi Nicolas!
Thanks a lot for the reply.
I try to do it and it works correctly, thank you very much for your suggestion !!
BR
Marco Perrone