LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

text cursor

When the cursor goes over my large text display box, it becomes the much-seen text cursor (like in windows).
 
Is there a way to change the color of the cursor? Or must it always be black?
 
thanks!
0 Kudos
Message 1 of 5
(2,415 Views)

With the Cursor VIs and mouse events, you can make the cursor look like whatever you want.  If you want to define a custom cursor (like a blue text entry cursor), you would need to create your own cursor file and use the Create Cursor from File.vi.  Then you could use the Set Cursor.vi to change the cursor to that custom icon when the "Mouse Enter" event fires on your string.  Then you could use the Set Cursor.vi to set it back to the normal LabVIEW cursor when the "Mouse Leave" event fires.

Hope this helps,
-D

P.S. - The Cursor VIs are only available in LabVIEW 7.0 and later, and are not available in the Base package.

Message Edited by Darren on 02-22-2006 02:15 PM

0 Kudos
Message 2 of 5
(2,413 Views)

Hi Darren-

 Thanks. Do you know if this exists for Labview 5.0? I'm working on a legacy system so stuck w/ old software.

thnx

Phil

0 Kudos
Message 3 of 5
(2,408 Views)
Oh- whoops you addressed that in your PS. sorry
0 Kudos
Message 4 of 5
(2,405 Views)
As you're working with an old version of LabVIEW, if you really need to do this you may be able to use the Windows API. You will probably need to write a small DLL that uses the LoadCursor and SetCursor functions. Or, you could look at this.
0 Kudos
Message 5 of 5
(2,399 Views)