New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RibbonUI.InvalidateControl does not work #191
Comments
After 4days seaching every related issues in Github, Codeplex and google but still can not solve this problem. I looked in to the source code of NetOffice 1.7.4.1 and found this in code of IRibbonUI.cs public void Invalidated Control(string ControlID) This may be cause the problem InvalidateContol does not work. Then I tried an old version of NetOffice which does not above code in the source. InvalidateContol works perfectly. |
Where in the source code have you found this? |
This is location of the C# file which has above code: ".Net 4\Source\Office\NativeCaller\IRibbonUI.cs" in NetOffice 1.7.4.1 release (https://github.com/NetOfficeFw/NetOffice/releases/tag/v1.7.4.1) |
Reported as bug here: https://osdn.net/projects/netoffice/ticket/37880 |
…\NativeCaller\IRibbonUI.cs) Fixes GitHub issue #191 Imported from NetOffice OSDN r31 https://osdn.net/projects/netoffice/scm/svn/commits/31
Fixed in release v1.7.4.1 (Update 1) |
I used RibbonUI.InvalidateControl to re-render the ribbon status, when ribbon update I use getEnabled callback to disable a control (in my example is an checkbox, set enable at begining). However, it does not work, the button is not be disabled after InvalidateControl called. I checked with only getEnable and it work perfectly, however InvalidateControl does not callback the getEnabled's function.
(This sample is created with Toolbox 1.5.0.0. Run with VS2015 and MS Office Excel 2010)
Here is code. Addin.cs
RibbonUI xml
The text was updated successfully, but these errors were encountered: