LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

disable mousecursor on frontpanel

Hello,
 
Because I'm using a touchscreen for my Labview program, I want to disable the mousecursor on the frontpanel. Now I have the standard righthand cursor. Is there an configoption for this and where can I find it? 
 
Thanks

Eddy
0 Kudos
Message 1 of 4
(3,983 Views)

From my experience with touch screen PCs, their virtual mouse software usually has an option for hiding the cursor.

For other solutions, you can call the ShowCursor windows API function (whose definition can be seen here. 0 hides the cursor, -1 shows it) or try using an empty cursor file and loading a cursor from there using the cursor VIs, which can be found in the Application Control palette.


___________________
Try to take over the world!
0 Kudos
Message 2 of 4
(3,966 Views)
If you're having trouble with the 'ShowCursor' API not working, try this.  You can prototype the API function 'ShowCursor' to return a LONG value.  When you call the 'ShowCursor' function, it simply increments or decrements a value somewhere in memory and returns that value.  I believe, If the value is greater than -1 then the cursor is shown, otherwise it is hidden.  If you call the function to show the cursor twice, you'll have to call it twice again to hide it.  I place my api call in a loop to continue incrementing, decrementing until the value is >, or <= -1, depending on whether I'm trying to show the cursor or hide it.
0 Kudos
Message 3 of 4
(3,569 Views)
Here are my VIs.
Download All
0 Kudos
Message 4 of 4
(3,563 Views)