取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 5 条)
3,179 次查看

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 项奖励
2 条消息(共 5 条)
3,177 次查看

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 项奖励
3 条消息(共 5 条)
3,172 次查看
Oh- whoops you addressed that in your PS. sorry
0 项奖励
4 条消息(共 5 条)
3,169 次查看
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 项奖励
5 条消息(共 5 条)
3,163 次查看