Ribbons driving me crazy

Hi! I´m new here and also driven crazy by ribbons... ;) A thought about your problem - doesn't one have to close and start the database in order to make the changes in the ribbon show? Wouldn't that explain the behavior of your database?
 
Hi

To change the ribbon at runtime should make use of attributes getVisible, getEnabled, getLabel, ....

The following changes
 

Attachments

Hi

To change the ribbon at runtime should make use of attributes getVisible, getEnabled, getLabel, ....

The following changes
Thank you, I see what you've done ... It's not exactly what I'm looking for, but it may help.

Cheers.
 
Hi! I´m new here and also driven crazy by ribbons... ;) A thought about your problem - doesn't one have to close and start the database in order to make the changes in the ribbon show? Wouldn't that explain the behavior of your database?
Sorry mate, can't understand you.
 
I don't want to go control by control enabling and disabling each one of them. Now, what I want is to have a completely different XML and load it, and refresh the ribbon, is that possible?.
 
I'm using 2010.
Ok, I don't use 2010 so I can't help you much but I would advise you not to use LoadCustomUI (i.e. get rid of your AutoExec query too) and instead save your ribbons in a table called USysRibbons. That should work with the invalidate statement.

I believe the reason why you're getting the error is because the invalidate statement fires before the ribbon is loaded but with the USysRibbons table it should work fine.

How to set this up is explained in that link you have.
 
Well, I've tried to use the getVisible Callback, and it just won't work. I don't know what I'm doing wrong, because I've copied everything I've seen and read all over the web and it just won't work, and throws an error.

I QUIT!!! I'm sick of the ribbons.
 
But you're still using the LoadCustomUI function aren't you?
 
Yes, that's the way I've seen many examples on the web. I don't know why to all of them they work, and to me, it doesn't, it's quite frustrating.
 
I take it you ignored what I said in my post #27 about using the USysRibbons table.
 
No, I didn't ignore you, I just tought I'll give it a try as I have now.

Anyways, I used the USysRibbons Table, and the same, won't update anything, I'm sure I'm doing something wrong but I don't know what.

I'm tired and sick of the bloody Ribbons.
 
VbaInet, follows the file in 2007, to help our friend.

Why did not serve my example? What's different from what you want?

You added the attribute getVisible the buttons on the ribbon? example:

<button id="TS71" label="Test1" onAction="RibbonEnabled" getVisible="fncGetVisible"/>

This using the "Invadate" or "InvalidateControl"? If you are using InvalidateControl, you should take the following care:

gobjRibbon.InvalidateControl "TS71" is different from gobjRibbon.InvalidateControl "ts71"

Show your code getVisible function, to understand what is being done.
 

Attachments

Users who are viewing this thread

Back
Top Bottom