Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Popup menu - how to hide drop down menu?
posted

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

Parents
  • 115
    posted

    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

     

    ????

Reply Children
No Data