Visio Guy

Visio Discussions => Programming & Code => Topic started by: adam.lewis on December 30, 2011, 05:16:25 AM

Title: Is it possible to disable the hourglass cursor when changing shape data
Post by: adam.lewis on December 30, 2011, 05:16:25 AM
Short Question
Is it possible to remove the hourglass cursor when changing shape data (ie User Defined cells, fill color etc...) programmatically?

Background
I am attempting to use Visio as a front end to view real time data retrieved from other local processes or systems on a local intranet.  At this point in time I am using COM control via Python with much success.  I am able to read all of the shapes and update them with no trouble, even at high rates of change.  I am also looking into socket connections via wsock to remove the COM processing in the near future.  While the control of Visio is great with COM and VBA, I cannot get over how annoying it is that EVERY time a shape's data is changed (written to) the mouse turns to the hourglass then back to the arrow.  The mouse is still 100% functional and does not hinder normal operation; it is just very distracting and would be embarrassing to send to a client. 

I have confirmed these issues both when a shape is changed via a COM interface or a VBA script.  Attached I have a sample of the VBA timer causing the hourglass change to help demonstrate what I am talking about.  Note that COM control does the same thing.  It seems that all of the MS Office suites have this kind of capability using the fmMousePointer Property  http://msdn.microsoft.com/en-us/library/dd909838(v=office.12).aspx (http://msdn.microsoft.com/en-us/library/dd909838(v=office.12).aspx), but I assume that because Visio was acquired and is not really part of the Office suite I shouldn't be too surprised...

System Information
OS: Windows 7 (64bit development, 32bit support needed as well)
Visio Version: 2010 Professional (32bit)
Browser ID: smf (is_webkit)
Templates: 1: Printpage (default).
Sub templates: 4: init, print_above, main, print_below.
Language files: 1: index+Modifications.english (default).
Style sheets: 0: .
Hooks called: 45 (show)
Files included: 25 - 922KB. (show)
Memory used: 748KB.
Tokens: post-login.
Cache hits: 8: 0.00145s for 22,301 bytes (show)
Cache misses: 2: (show)
Queries used: 11.

[Show Queries]