RibbonX Controls and Determining Enabled?

T

TMC

Hey All,

I am aware of the 'Enabled' attributed and associated 'getEnabled' callback.

However, what if I just want to determine if a control in enabled? For
example, I do not want to set its state in XML and I do not want to change
its 'Enabled' property via the callback but, rather, I just want to find out
if it is enabled or not.

With the old CommandBarButtons, one could call the 'Enabled' property to
determine this.

Is there some way to determine if a Ribbon control is enabled?

Thanks
 
A

Andy Pope

Hi,

For a built-in control you can use GetEnabledMso.
Example for paste button.

application.CommandBars.GetEnabledMso("Paste")

Cheers
Andy
 
B

Bob Phillips

I am not aware of any way that you can address a control on the ribbon other
than via a callback, when the control is passed to the callback procedure.

HTH
Bob
 
T

TMC

Thanks Andy!

Exactly what I was seeking ;-)



Andy Pope said:
Hi,

For a built-in control you can use GetEnabledMso.
Example for paste button.

application.CommandBars.GetEnabledMso("Paste")

Cheers
Andy
 

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