PDA

View Full Version : RibbonX behaves differently under Windows 7



shankar
09-28-2010, 11:18 AM
I find that the behavior of the custom Ribbon tab of an add-in that I use is different in Windows 7 from Vista, after upgrading my OS. I am using Excel 2007.

In Win 7, even though the add-in tab is visible, the ribbon under the tab is the standard Excel ribbon if there is no file loaded (apart from the add-in).

Only when a file gets loaded, the Ribbon for the custom tab changes to the custom one. If the loaded file is closed, the custom ribbon vanishes again.

In Vista, the custom ribbon is always shown under the custom tab, irrespective of whether or not any other file is loaded.

Have others noted this? If so, is there a way to make the custom ribbon always visible? Thanks.

Shankar

Bob Phillips
09-28-2010, 11:26 AM
What does your callback code look like?

shankar
09-29-2010, 01:49 AM
I found that the behavior is related to callbacks. Even if I have getEnabled set to just True in the callback, I have to click the custom tab 2 or 3 times for the custom ribbon to appear.

Any clue as to what is happening? Thanks.

Bob Phillips
09-29-2010, 02:05 AM
Not without seeing it in action.

shankar
09-29-2010, 02:31 AM
I have attached a macro file that gives the problem. Please save it as an add-in and open it. I have to click on the custom tab twice to get my ribbon to display. On my actual project, it takes 5 or 6 times.

Bob Phillips
09-29-2010, 04:04 AM
I have just loaded it in Excel 2010 under Windows 7 and I see no abnormal behaviour. I loaded the addin, no other workbook, and the tab showed immediately. Loading a file was fine too.

shankar
09-29-2010, 06:56 AM
Maybe it is an Excel 2007- Windows 7 issue. I had no problems with Vista.

shankar
09-29-2010, 09:00 AM
I found that each time the custom tab is clicked, only one callback gets called. So if there are 5 callbacks in the XML code, then it takes 5 clicks before the custom ribbon gets shown.