I have a segmented toolbar popup menu that could have all the popup tools hidden due to user security rights. Is there a way to stop or remove the popup menu if it doesn't contain any tools? I don't want to remove the popup tool as the segmented option will always be required - it is just the empty popup I would like to remove.
Preferably I would like the empty popup menu to appear and operate as a button tool - no popup and no dropdown arrow.
Thanks in advance.
Aaron
something like this maybe....
Dim FileMenu As Infragistics.Win.UltraWinToolbars.PopupMenuTool = CType(tbMenuBar.Tools("File"), Infragistics.Win.UltraWinToolbars.PopupMenuTool)
Dim tbMenuBar As Infragistics.Win.UltraWinToolbars.UltraToolbar tbMenuBar = tb.ToolbarsManager.Toolbars("MenuBar")
If FileMenu.Tools.Count = 0 Then tbMenuBar.Tools.Remove(FileMenu)End If
????
I would not remove the tool. Instead, just set it's InstanceProps.Visible to False to hide it and show the ButtonTool by setting it's Visible to True.