WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-28-2016, 09:45 AM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
Smile 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
Reply With Quote
  #2  
Old 01-05-2017, 09:07 AM
haohaoxuexi1 haohaoxuexi1 is offline
Member
 
Join Date: Sep 2015
Posts: 81
anyone knows
Reply With Quote
  #3  
Old 01-05-2017, 01:02 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
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 )
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mouse bug in V3 and V4 Renato Lima Vizard 2 05-11-2011 06:38 PM
Mouse event: how to detect no mouse move event, how to set mouse position? Zhi Vizard 3 04-11-2011 06:25 PM
Warning mouse() -> Set mouse() of window johannes2 Vizard 1 08-19-2010 02:11 PM
how to remove velocity when mouse is disabled? jvacare1 Vizard 2 02-18-2010 10:25 AM
Navigating an avatar using mouse position(2D) in 3D environment james007 Vizard 1 10-16-2009 11:29 AM


All times are GMT -7. The time now is 11:36 AM.


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