Re: Controling the Ribbon

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Hi Ken

Thank you for your reply.

I will have a look into that, togehter with the information from mwiles reply.

Best Regards
--
Peter Karlström
Midrange AB
Sweden


"Ken Slovak - [MVP - Outlook]" wrote:

When the WindowActivate() event fires you can use the window passed to you
(wn) to get the document in the window and then call Invalidate() or
InvalidateControl(idMSO) to force your ribbon callbacks to be called. There
you can set the visible and enabled properties of the items as well as
switch ribbon icons and labels, etc.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Peter Karlström" <HayRoller@xxxxxxxxxxxxxxxx> wrote in message
news:D64F832B-BEFB-47BB-BF75-291F522F1E95@xxxxxxxxxxxxxxxx
Hi

I'm trying to replace the funtionality from an old Word 2003 commandbar to
the new Ribbon-technology in Word 2007 in a large VB6 COM Addin project.
I have figured out how to create the Ribbon Tab with XML (Thank you Ken
Slovak) and get it to call procedures in the COM Addin like the old
inteface,
but one thing I can't figure out:

When the user switch between documents (thru oApp_WindowActivate event),
some of the functions in the Ribbon must be disabled, depending of the
type
of document.
The type of document is project related to the customers document handling
system, and the disabling and enabling of functions in the Ribbon tab is
essential to this applications interface.

How can this be done?

Thanks in advance
--
Peter Karlström
Midrange AB
Sweden


.



Relevant Pages

  • Controling the Ribbon
    ... the new Ribbon-technology in Word 2007 in a large VB6 COM Addin project. ... I have figured out how to create the Ribbon Tab with XML (Thank you Ken ... and the disabling and enabling of functions in the Ribbon tab is ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: Office 2007 Ribbons
    ... The prior version shortcut keys generally work and you may want to start ... off by adding the Powerpoint 'Getting Started' Ribbon tab which gives you some quick cutovers to the 'where is it' type of stuff:) ... With all due respect to the new Office 2007 "Ribbon" menues, ... PowerPoint 2007 for a feature I used several times a day in 2003. ...
    (microsoft.public.office.misc)
  • Re: Disable all Office menu items (except 1)?
    ... And on the insert ribbon the same thing - all disabled except Table ... Office 2003, maybe, but truly disabling commands would *require* VBA ... This reply is posted in the Newsgroup; ...
    (microsoft.public.office.developer.com.add_ins)
  • Re: I hate new 2007 Office! Can I turn on old menus?
    ... You might or might not get to like the Ribbon. ... desired function is on a different ribbon tab, so we had to "Move cursor to ... want better than the customers. ...
    (microsoft.public.office.misc)
  • Re: IRibbonUI.ActivateTab(string)
    ... (Colbert Zhou [MSFT]) ... developemtn improvement in Office 2010. ... we have to set the keytip of a Ribbon tab. ...
    (microsoft.public.office.developer.com.add_ins)