Re: Controling the Ribbon
- From: Peter Karlström <HayRoller@xxxxxxxxxxxxxxxx>
- Date: Tue, 9 Dec 2008 09:46:00 -0800
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
- References:
- Controling the Ribbon
- From: Peter Karlström
- Re: Controling the Ribbon
- From: Ken Slovak - [MVP - Outlook]
- Controling the Ribbon
- Prev by Date: Changing Access Add-In Name and Discription
- Next by Date: Re: What is the DataFormats.Html structire for PPT?
- Previous by thread: Re: Controling the Ribbon
- Next by thread: InvalidateRibbon failing with Object Required return code
- Index(es):
Relevant Pages
|