Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / January 2005

Tip: Looking for answers? Try searching our database.

Changing Mouse Pointer

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Conradish - 21 Jan 2005 20:29 GMT
I'm running Word 2000 and VBA and can't seem to find the way to change the
mouse pointer to an hourglass (per the current active document).

I've create a macro that scans all the lines of the active document, which
may take several seconds, or even a few minutes. I'm proficient in VB6,
however I can't seem to find any Word VBA collection or object that has a
MousePointer property. Any help would be appreciated! Thanks.
Peter - 21 Jan 2005 20:39 GMT
> I'm running Word 2000 and VBA and can't seem to find the way to change the
> mouse pointer to an hourglass (per the current active document).
[quoted text clipped - 3 lines]
> however I can't seem to find any Word VBA collection or object that has a
> MousePointer property. Any help would be appreciated! Thanks.

System.Cursor = wdCursorWait
System.Cursor = wdCursorNormal

But why do that?  If the application is processing, it should modify the cursor itself, no?

hth,

-Peter
Conradish - 21 Jan 2005 23:45 GMT
> But why do that?  If the application is processing, it should modify the cursor itself, no?

Doesn't seem to. I did a test, had it loop through a 25 page doc. It never
did change the cursor on it's own. It pretty much used all of Word's
processing to run the macro. (I couldn't work on any other opened doc while
the macro ran).

The Screen.Cursor worked, until I stuck a Doevents in the loop to allow for
some freedom. That seemed to reset the cursor. I was hoping for a way to just
set the cursor for the current window (active doc).

> hth,
>
> -Peter
Peter - 22 Jan 2005 00:21 GMT
> > But why do that?  If the application is processing, it should modify the
> cursor itself, no?
[quoted text clipped - 7 lines]
> some freedom. That seemed to reset the cursor. I was hoping for a way to just
> set the cursor for the current window (active doc).

System.Cursor is the only one I know of.
I suppose you could set it after the doevents, too, but that's starting to get into the realm of kludgey hacks.
What about an API call?
Now we're getting into the realm of diminishing ROI. :-P

-Peter
Conradish - 22 Jan 2005 02:31 GMT
Yea, I suppose I could do that. I thought I better ask though, in hopes I was
missing something a lot simpler. Thanks for your help though. I did learn
about the Cursor.

> What about an API call?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.