|
|
|
date: Mon, 28 Jan 2008 13:39:06 +1300,
group: microsoft.public.word.vba.customization
back
Re: Intercepting right mouse click - MS Word 2000>
Hi Ian
First, some terminology. What you see when you right-click the face of a
Word document is called a Shortcut menu.
There are many shortcut menus, and which one Word displays in response
to a right-click depends on what you right-clicked. For example, if you
right click in a field, you see the Fields menu, which includes the
Update Field command. But if you right-click in a footnote, you see the
Footnotes menu, which includes commands relating to footnotes.
So you have to decide which of the many shortcut menus you want to
customize. Doug's message explained how to do that. For more details,
see:
How to assign a Word command or macro to a toolbar or menu
http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
Hope this helps.
Shauna Kelly. Microsoft MVP.
http://www.shaunakelly.com/word
"Ian Bayly" wrote in message
news:OF9VbMrYIHA.600@TK2MSFTNGP02.phx.gbl...
> Thanks for the suggestion Doug but I must be missing something.
> On my PC (Word 2003) the right click menu looks nothing like the
> shortcut menu.
> The shortcut menu seems to have every possible action within it,
> whereas the right click menu has only 11 actions.
> To rephrase the question, how can I customise the right click menu.
>
> Ian B
>
> "Doug Robbins - Word MVP" wrote in message
> news:OR5pdwhYIHA.5980@TK2MSFTNGP04.phx.gbl...
>> Customize the relevant right click (Short cut) menu(s) by adding a
>> button that calls the macro that causes the form to be displayed.
>>
>> To do that, select Customize from the Tools menu and then go to the
>> Toolbars tab of the Customize dialog and check the "Shortcut Menus"
>> toolbar. Then go to the Commands tab and from the Macros Categorym
>> select the command (macro) and drag it onto the expanded short cut
>> toolbar(s)
>>
>> --
>> Hope this helps.
>>
>> Please reply to the newsgroup unless you wish to avail yourself of my
>> services on a paid consulting basis.
>>
>> Doug Robbins - Word MVP
>>
>> "Ian B" <ian@(TakeOut)docspro.co.nz> wrote in message
>> news:O9QqxYUYIHA.5348@TK2MSFTNGP03.phx.gbl...
>>> Hi All
>>> This is probably getting outside Word, but its Word and VBA I'm
>>> working
>>> with.
>>>
>>> I need to intercept a right mouse click when editing a word document
>>> and
>>> then showing a form (VB/VBA) of my own.
>>> I have experimented with Spy++ (distributed with VB6) and while I
>>> can see
>>> messages from other mouse clicks, I cannot see any WM_RBUTTONxxx
>>> messages
>>> from a right mouse click.
>>> I suspect this is because Word may be intercepting the message
>>> before Spy++
>>> sees it.
>>>
>>> I'm at (if not beyond!) my programming ability with this so any
>>> pointers
>>> greatly appreciated.
>>>
>>> Ian B
>>>
>>>
>>
>>
>
>
date: Wed, 30 Jan 2008 10:28:37 +1100
author: Shauna Kelly
Re: Intercepting right mouse click - MS Word 2000>
Thanks Shauna
Never knew that, I must have always right clicked on a blank portion of the
document.
Makes sense now.
Ian B
"Shauna Kelly" wrote in message
news:uafZD9sYIHA.4140@TK2MSFTNGP04.phx.gbl...
> Hi Ian
>
> First, some terminology. What you see when you right-click the face of a
> Word document is called a Shortcut menu.
>
> There are many shortcut menus, and which one Word displays in response to
> a right-click depends on what you right-clicked. For example, if you right
> click in a field, you see the Fields menu, which includes the Update Field
> command. But if you right-click in a footnote, you see the Footnotes menu,
> which includes commands relating to footnotes.
>
> So you have to decide which of the many shortcut menus you want to
> customize. Doug's message explained how to do that. For more details, see:
>
> How to assign a Word command or macro to a toolbar or menu
> http://www.word.mvps.org/FAQs/Customization/AsgnCmdOrMacroToToolbar.htm
>
> Hope this helps.
>
> Shauna Kelly. Microsoft MVP.
> http://www.shaunakelly.com/word
>
>
>
>
> "Ian Bayly" wrote in message
> news:OF9VbMrYIHA.600@TK2MSFTNGP02.phx.gbl...
>> Thanks for the suggestion Doug but I must be missing something.
>> On my PC (Word 2003) the right click menu looks nothing like the shortcut
>> menu.
>> The shortcut menu seems to have every possible action within it, whereas
>> the right click menu has only 11 actions.
>> To rephrase the question, how can I customise the right click menu.
>>
>> Ian B
>>
>> "Doug Robbins - Word MVP" wrote in message
>> news:OR5pdwhYIHA.5980@TK2MSFTNGP04.phx.gbl...
>>> Customize the relevant right click (Short cut) menu(s) by adding a
>>> button that calls the macro that causes the form to be displayed.
>>>
>>> To do that, select Customize from the Tools menu and then go to the
>>> Toolbars tab of the Customize dialog and check the "Shortcut Menus"
>>> toolbar. Then go to the Commands tab and from the Macros Categorym
>>> select the command (macro) and drag it onto the expanded short cut
>>> toolbar(s)
>>>
>>> --
>>> Hope this helps.
>>>
>>> Please reply to the newsgroup unless you wish to avail yourself of my
>>> services on a paid consulting basis.
>>>
>>> Doug Robbins - Word MVP
>>>
>>> "Ian B" <ian@(TakeOut)docspro.co.nz> wrote in message
>>> news:O9QqxYUYIHA.5348@TK2MSFTNGP03.phx.gbl...
>>>> Hi All
>>>> This is probably getting outside Word, but its Word and VBA I'm working
>>>> with.
>>>>
>>>> I need to intercept a right mouse click when editing a word document
>>>> and
>>>> then showing a form (VB/VBA) of my own.
>>>> I have experimented with Spy++ (distributed with VB6) and while I can
>>>> see
>>>> messages from other mouse clicks, I cannot see any WM_RBUTTONxxx
>>>> messages
>>>> from a right mouse click.
>>>> I suspect this is because Word may be intercepting the message before
>>>> Spy++
>>>> sees it.
>>>>
>>>> I'm at (if not beyond!) my programming ability with this so any
>>>> pointers
>>>> greatly appreciated.
>>>>
>>>> Ian B
>>>>
>>>>
>>>
>>>
>>
>>
>
>
date: Thu, 31 Jan 2008 08:32:54 +1300
author: Ian Bayly
|
|