07-31-2013 07:54 PM
How do i go about doing this (titled mentioned)?
I found https://decibel.ni.com/content/docs/DOC-17854 but it's not working that well for me as it stills needs a show control to control the show/hiding of cursors.
my specification is such that at a left click, it will hide by itself, once i stop (which will be a right click), the cursor will be back
Attached VI has a calling of library node (which is the showing and hiding of cursors)
Solved! Go to Solution.
07-31-2013 08:05 PM
I'm not sure what you mean by needing a show control, but you can trap mouse up and down events anywhere.
Mike...
07-31-2013 08:10 PM - edited 07-31-2013 08:12 PM
For the show control (according to the website posted) it needs "Show" control to be 0 and return type to be less than 1 to hide, while to unhide it, you need to run the VI again with "Show" control to be 1 and return type to be more than 0, which is not really intended for my main VI which needs to automatically do it instead of pressing the control.
So i'm looking/open to any suggestions to show/hide my cursor with the above specification.
07-31-2013 08:35 PM
That is an obnoxious VI and I don't recommend anyone to run it. It certainly hides the mouse cursor. That is a horrible user interfaces.
I had to blindly close out all of LabVIEW (because the cursor is missing in all of the LabVIEW windows, not just this VI's) in order to be able clear out the cursor setting and have it back again.
I suggest you rethink whatever it is your are trying to do so there is a friendlier user interface.
07-31-2013 08:47 PM - edited 07-31-2013 08:49 PM
I see.... well, i just took it from example by NI, still working on the interface for this
So do you have any suggestion for hiding the cursors? with the specification.
07-31-2013 09:04 PM - edited 07-31-2013 09:05 PM
Workaround Attached.
Left Click = Hide
Right Click = Show
07-31-2013 09:32 PM
Hi, Able to downgrade to labview 2010? I'm using 2010
07-31-2013 09:36 PM
Here it is:
07-31-2013 09:48 PM
Hahah 1 more favour, can you explain your code?
07-31-2013 10:01 PM
Basically, it's an Event Structure with While Loop. The Mouse Down event will be activate when u Click (Left or Right Button) in ur Front Panel
If Left button pressed: "Create Cursor from File" function will create the Invisible Cursor File in Folder (1x1 Pixel size...) and "Set Cursor Function" will load that custom file.
If Right Button Pressed: "Set Cursor Function" will load the Cursor by ID (Actually 1)... that means the normal cursor will be restored.
Sry for bad english. I'm Brazilian 😄