Marco Hsu Posted November 4, 2016 Share Posted November 4, 2016 I want to let the UniMainMenu control mouse close to the automatic pop-up sub menu, how to set up? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted November 4, 2016 Share Posted November 4, 2016 Hi, For now can you try this solution ?!: 1. type TUniExMainMenu = class(TuniMainMenu) end; 2. procedure TMainForm.UniFormReady(Sender: TObject); var MainMenuJSName: string; begin MainMenuJSName := TUniExMainMenu(UniMainMenu1).GetMenuControl.JSName; UniSession.AddJS(MainMenuJSName + '.items.items.forEach(function(m){m.addListener("mouseover", function(){this.showMenu()})})'); end; Best regards. Quote Link to comment Share on other sites More sharing options...
Marco Hsu Posted November 4, 2016 Author Share Posted November 4, 2016 Thank you ! 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.