WorldViz User Forum

WorldViz User Forum (https://forum.worldviz.com/index.php)
-   Vizard (https://forum.worldviz.com/forumdisplay.php?f=17)
-   -   mouse cursor size (https://forum.worldviz.com/showthread.php?t=5926)

haohaoxuexi1 12-28-2016 09:45 AM

mouse cursor size
 
when I set up the mouse ICON using win32gui like the code below, is that possible to change the size of the cursor in the window. I want to make it bigger.

handCursor = win32gui.LoadCursor(0,win32con.IDC_HAND)
viz.mouse.setCursor(handCursor)

thx

haohaoxuexi1 01-05-2017 09:07 AM

anyone knows

Jeff 01-05-2017 01:02 PM

You could use a custom texture for the cursor. The following code hides the mouse cursor and adds a crosshair:

Code:

#Disable mouse navigation and hide cursor
viz.mouse.setOverride(True)
viz.mouse.setVisible(False)

#Add a crosshair that is linked to the mouse
crosshair = viz.addTexQuad(viz.ORTHO, texture=viz.add('crosshair.png'), size=64)
viz.link( viz.Mouse , crosshair, srcFlag=viz.WINDOW_PIXELS )



All times are GMT -7. The time now is 06:30 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC