Context menu list

G

Guest

Hi,
I'm working on a VSTO add-in for PowerPoint 2007 and I'm looking for a list
of all the context menu names. In PowerPoint 2003, it was possible to get it
with Tools -> Customize -> Context Menus. Does this functionnality still
exist with PowerPoint 2007 ?
Thank you
 
P

Patrick Schmid [MVP]

Only very few context menus can be customized in 2007. If I remember
correctly, the slides one can be customized and then maybe one more

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
 
G

Guest

Actually, I want to customize the context menu that pops when you right click
on the text in the text frame. Until PowerPoint 2007, I was doing that by
adding buttons to the "Shapes" CommandBar object. But I guess the name has
changed because it has stopped working since Office 2007.
This sub write all the command bars and the buttons they contain :
Sub CommandBar()
Dim i As Long, j As Long
Dim writer As IO.TextWriter

writer = File.CreateText("C:\pptCommandBars.txt")

With Application.CommandBars
For i = 1 To .Count
writer.WriteLine(.Item(i).Name)
With .Item(i).Controls
For j = 1 To .Count
writer.WriteLine(" " + .Item(j).Caption)
Next j
End With
Next i
End With
End Sub

The problem is that there's no command bar in the list that contains the
buttons I see when I right click on text in a text frame.

Patrick Schmid said:
Only very few context menus can be customized in 2007. If I remember
correctly, the slides one can be customized and then maybe one more

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




Hi,
I'm working on a VSTO add-in for PowerPoint 2007 and I'm looking for a list
of all the context menu names. In PowerPoint 2003, it was possible to get it
with Tools -> Customize -> Context Menus. Does this functionnality still
exist with PowerPoint 2007 ?
Thank you
 
P

Patrick Schmid [MVP]

The problem is that you can't. The text frames are handled by the new
Office 2007 graphics engine, and the right-click context menu cannot be
customized for that.
Sorry

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




Actually, I want to customize the context menu that pops when you right click
on the text in the text frame. Until PowerPoint 2007, I was doing that by
adding buttons to the "Shapes" CommandBar object. But I guess the name has
changed because it has stopped working since Office 2007.
This sub write all the command bars and the buttons they contain :
Sub CommandBar()
Dim i As Long, j As Long
Dim writer As IO.TextWriter

writer = File.CreateText("C:\pptCommandBars.txt")

With Application.CommandBars
For i = 1 To .Count
writer.WriteLine(.Item(i).Name)
With .Item(i).Controls
For j = 1 To .Count
writer.WriteLine(" " + .Item(j).Caption)
Next j
End With
Next i
End With
End Sub

The problem is that there's no command bar in the list that contains the
buttons I see when I right click on text in a text frame.

Patrick Schmid said:
Only very few context menus can be customized in 2007. If I remember
correctly, the slides one can be customized and then maybe one more

Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Outlook 2007 Performance Update: http://pschmid.net/blog/2007/04/13/105
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://ribboncustomizer.com
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed




Hi,
I'm working on a VSTO add-in for PowerPoint 2007 and I'm looking for a list
of all the context menu names. In PowerPoint 2003, it was possible to get it
with Tools -> Customize -> Context Menus. Does this functionnality still
exist with PowerPoint 2007 ?
Thank you
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top