Microsoft Office Tutorials and References
In Depth Information
Adding controls to menus
You don't have any out-of-the-box features to enable the classic menu style in Word
2007, but we can achieve the same classic menu item in the UI and almost 100% of
the original functionality, by adding third-party add-in controls. Users can customize
the Ribbon by using the built-in features available, with a few more limitations. We
can customize, add control, and do more using the VSTO 3.0 runtime and .NET
programming at the document-level and the application-level of Word 2007.
Adding controls to menus
Developers have complete control over customizing the Ribbon in Word 2007. The
design around the Ribbon is fairly simple. It's a tabbed strip interface that contains
a set of groups. Each of these groups can contain a number of controls, with each
control potentially having a different type. These might be buttons, drop-down
menus, textboxes, and so on. These controls can be grouped in a nested fashion
within the definition, and the user interface will display it continuously.
Let's do some simple customization of the Ribbon menus in Microsoft Office
Word 2007. Follow the steps given below to add controls and customize your
Word 2007 menu.
1. Open Visual Studio 2008, to create a new Word 2007 Add-In
template project.
2. Select New Project . Under Office , select 2007 , and then select the Word 2007
Add-In template, and give the project a name.
3. The solution will be created. Along with with all the supporting files
required for the development of our Word solution.
Next, let's add the Ribbon component to our solution. Right-click on the
project, and select Add | New Item... | Ribbon (Visual Designer) (A control
that provides a visual designer for basic Ribbon customization tasks) from
the context menu.
Search JabSto ::

Custom Search