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?
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
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.