RE: RibbonX - programatically enable/disable buttons
- From: "Patrick Schmid [MVP]" <pdschmid@xxxxxxxxxxxxxxx>
- Date: Tue, 10 Apr 2007 02:49:51 +0000
When you use getVisible, you should keep in mind that even if a control is invisible, the user can still access it via the QAT Customization dialog and execute it via the QAT. You should always use the getEnable callback as well and disable all the controls with it as well. If you hide a tab, group or menu, keep in mind that you need to disable every single control individually contained within them.
Patrick Schmid [OneNote MVP]
--------------
http://pschmid.net
***
Office 2007 RTM Issues: http://pschmid.net/blog/2006/11/13/80
***
Customize Office 2007: http://pschmid.net/office2007/customize
RibbonCustomizer Add-In: http://pschmid.net/office2007/ribboncustomizer
OneNote 2007: http://pschmid.net/office2007/onenote
***
Subscribe to my Office 2007 blog: http://pschmid.net/blog/feed
"Wei Lu [MSFT]" <weilu@xxxxxxxxxxxxxxxxxxxx> wrote in message news:mfOBeexeHHA.6068@xxxxxxxxxxxxxxxxxxxxxx:
Hello Dave,
When you devlop the custom Ribbon control, you could use the getVisiable
callback in the XML to programmatically determine whether to show or hide a
tab.
You could follow the example in the article:
http://msdn2.microsoft.com/en-us/library/aa338202.aspx#OfficeCustomizingRibb
onUIforDevelopers_Access
Sincerely,
Wei Lu
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
.
- Follow-Ups:
- RE: RibbonX - programatically enable/disable buttons
- From: David Thielen
- RE: RibbonX - programatically enable/disable buttons
- References:
- RE: RibbonX - programatically enable/disable buttons
- From: Wei Lu [MSFT]
- RE: RibbonX - programatically enable/disable buttons
- Prev by Date: Re: RibbonX - what is keytip?
- Next by Date: RE: RibbonX - programatically enable/disable buttons
- Previous by thread: RE: RibbonX - programatically enable/disable buttons
- Next by thread: RE: RibbonX - programatically enable/disable buttons
- Index(es):