Results 1 to 4 of 4

Thread: changing the mousepointer icon

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    91

    changing the mousepointer icon

    I am using Word automation in my VB6 application
    Now i still need several problems solved to complete my project.
    *One is changing the mousepointer icon

    Change the mousepointer/icon but not only in the VB form i want to change it
    when cursor is in the Word document.

    I have
    Set AppWord= createobject("Word.Application")
    ...
    Is there a mouse property of the activedocument or window that can be changed?
    Appword.ActiveDocument.Mouseicon... ?
    Or is there an API i can use to change the mousepointer in general for allso outside the vb application.

    Clearly what i want to do is following.
    I have made a zoom button on my vbform
    and an active word doc is allso open.
    When zoom button is clicked, i can left or right click in the word doc and zoom function is called which adds 25 or minus 25 for the doc zoom. This allready works.
    Only The mousecursor when clicked on the word doc stays an arrow, and want it to be a magnifyglass.
    Allsso when right click on the word doc, a shortcut menu is displayed, can this be avoided (this last is minor importance)

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Oct 2005
    Posts
    91

    Re: changing the mousepointer icon

    Is there a way to change a windows mouseicon (maybe with an API) using the window its handle?
    I can get the Word doc window handle maybe i can use this.

  3. #3
    Hyperactive Member
    Join Date
    Apr 2001
    Location
    N42 29.340 W71 53.215
    Posts
    422

    Re: changing the mousepointer icon

    This is a good question.
    Sorry I don't have a good answer.

    I thought this was an easy one, so I've been poking around VB, Word VBA & APIs, but I can't figure it out.
    "The wise man doesn't know all the answers, but he knows where to find them."
    VBForums is one place, but for the really important stuff ... here's a clue 1Tim3:15

  4. #4
    Frenzied Member DKenny's Avatar
    Join Date
    Sep 2005
    Location
    on the good ship oblivion..
    Posts
    1,171

    Re: changing the mousepointer icon

    I think you need to use the Cursor property of the System object.

    VB Code:
    1. System.Cursor = wdCursorWait
    Declan

    Don't forget to mark your Thread as resolved.
    Take a moment to rate posts that you think are helpful

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width