Quantcast
Channel: OSIsoft Users Community
Viewing all articles
Browse latest Browse all 1120

Custom Mouse Icon

$
0
0

I am very new to ProcessBook displays, and I am trying to figure out how to make text act like a link to open a new display.  I've gotten as far as when you click on the text it will open the display.  However, I would like the mouse pointer to change to the link icon (the hand with the pointing finger) when the cursor hovers over the text.  The cursor I want is not a default one within ProcessBook so I am having to load my own picture.  Here is a snippet of my code:

Private Sub Text61_MouseOver()
Dim d1 As Display
Set d1.MouseIcon = LoadPicture("C:\Windows\Cursors\aero_link.cur")
MousePointer = pbMPCustom

End Sub

Private Sub Text61_MouseOut()
MousePointer = pbMPDefault
End Sub

The help topic on the mouse icon property says that it must be a .icn or a .cur file but whenever I am in run mode and hover it gives a runtime error saying Invalid picture. I also tried another cursor file in the same folder but that gave the same error.  When I use a ProcessBook default instead of the custom, it does work as expected and changes the cursor on hover

 

 


Viewing all articles
Browse latest Browse all 1120

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>