[CONNECT - U2] Ribbon Labels or other properties from Config Var

Is it possible to adjust properties of ribbon elements (or QAT) using a configuration variable?  For instance, if I want to adjust the title of a label of a tab base on selected criteria, is it possible to do so?

  • Hi Sean,

    I guess it's not possible. The only condition you can define for ribbon parts is visibility test that is based on Named Expressions. I have no hands-on experience, but I assume such functionality can be added using NET addin that will control ribbon directly. On the other hand ribbon API is not publicly described, so it will require some research.

    Can you provide more details why do you need such functionality and how it shold work in practice? Using visibility test it's possible to switch between the same but differently named buttons or groups, but for more complex structures it seems to be not the best solution.

    With regards,

    Jan
  • Essentially I am trying to bring our department menubar system into connect.  I had supported the old menubar mdl for these past years for v8i, but I am finally trying to get away from it...play nice with Bentley :)

    The problem is that many of the menu entries are commands to turn on/off levels based on a sheet type.  There is vba coding in the background that detects (or the user can set) the sheet type, which then when the user selects the menu option, will reach out to an XML file that we use to manage what levels should be turned on/off for any particular sheet and apply the level settings for the active and reference files.  Here are a couple basic examples:

      

    I originally tried yesterday to recreate the system in the MSCE ribbon interface, but after loading many of the commands, the interface on a whole just seemed to take up too much real estate for some file types.  The ribbon is just not a decent choice to bring old menus into, even with the newer options for the button types and such.

    So now I'm back at creating the menu in the QAT, but one thing that hit me in the face is that Sub-Menus and Sub-Menu Items are not available as a component to add in the customize dialog. 

    The best I could do is a Drop-Down Button for this situation, but that would separate things out instead of keeping them nice and tidy:

    OK:  

    Bad:

    It's bad enough that the user has to select the top menu just to see which one is loaded, but in the second case, the user would completely bypass it and may have the wrong menu loaded without knowing it.

    If there was a way to change the label via a configuration variable, then I would be able to re-use the "Set Level Display" for a good portion of my menus and get the conversion done quicker.

  • The more I think about it, it would seem that making Sub-Menus and Sub-Menu Items available to copy from other areas would be a better solution. One of the things I'm trying to avoid is duplication of data, that way if a menu option has to change and it resides under multiple areas, they should all change at the same time.