RibbonX getPressed/getEnabled should have [in,out] parameter

A

Arno Schoedl

RibbonX getPressed/getEnabled callbacks should have a [in,out] parameter for
repurposed commands instead of [out,retval]. The parameter should be
initialized with whatever Office would have done if there would be no
repurposed command. getEnabled, if the parameter on [in] is false, but on
[out] is true, would force commands to be enabled (which is currently not
possible). In this case, the default action would be undefined, but the
repurposed onAction could react to the command. getPressed would allow
finding out what Office's unmodified button state is by examining the
parameter on [in] (which it currently cannot).

Alternatively, both could return a 3-state, off/on/unmodified. This would
eliminate the necessity to requery when Office changes its internal decision
about a button state and may be less of a change to the current model.

----------------
This post is a suggestion for Microsoft, and Microsoft responds to the
suggestions with the most votes. To vote for this suggestion, click the "I
Agree" button in the message pane. If you do not see the button, follow this
link to open the suggestion in the Microsoft Web-based Newsreader and then
click "I Agree" in the message pane.

http://www.microsoft.com/office/com...microsoft.public.office.developer.com.add_ins
 

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