风吹小机机 Posted September 13, 2021 Share Posted September 13, 2021 Excuse me? Tunitree, how can the node disable the right-click menu of IE Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2021 Share Posted September 13, 2021 2 hours ago, 风吹小机机 said: Tunitree, how can the node disable the right-click menu of IE Hello, UniMainModule -> BrowserOptions -> boDisableMouseRightClick = True ? Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted September 13, 2021 Author Share Posted September 13, 2021 2 hours ago, Sherzod said: Hello, UniMainModule -> BrowserOptions -> boDisableMouseRightClick = True ? In this way, there is no right-click menu in the whole framework, I just want to disable the right button for tree and node Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2021 Share Posted September 13, 2021 1 hour ago, 风吹小机机 said: I just want to disable the right button for tree and node Specifically, which component? Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted September 13, 2021 Author Share Posted September 13, 2021 Just now, Sherzod said: 具体是哪个组件? TUniTreeView Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 13, 2021 Share Posted September 13, 2021 1 hour ago, 风吹小机机 said: TUniTreeView 8 hours ago, 风吹小机机 said: Tunitree, how can the node disable the right-click menu of IE Can you try? function afterrender(sender, eOpts) { sender.getView().getEl().dom.addEventListener( 'contextmenu', function(e) { e.preventDefault() } ); } Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted September 15, 2021 Author Share Posted September 15, 2021 On 9/13/2021 at 7:15 PM, Sherzod said: Can you try? function afterrender(sender, eOpts) { sender.getView().getEl().dom.addEventListener( 'contextmenu', function(e) { e.preventDefault() } ); } Tunitreeview is browser right-click disabled However, the internal node does not disable the right button, and two menus (customized menu and browser menu) will appear Quote Link to comment Share on other sites More sharing options...
风吹小机机 Posted September 15, 2021 Author Share Posted September 15, 2021 9 minutes ago, 风吹小机机 said: Tunitreeview is browser right-click disabled However, the internal node does not disable the right button, and two menus (customized menu and browser menu) will appear Sorry, maybe I didn't describe the problem very clearly As shown in the figure, how to remove the menu in the red box Only disable the browser's own menu of tree nodes Quote Link to comment Share on other sites More sharing options...
Sherzod Posted September 15, 2021 Share Posted September 15, 2021 42 minutes ago, 风吹小机机 said: Sorry, maybe I didn't describe the problem very clearly As shown in the figure, how to remove the menu in the red box Only disable the browser's own menu of tree nodes Hello, Do you have a simple testcase to check? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.