Beginner Posted July 14, 2016 Share Posted July 14, 2016 How autodropdown menubutton on click? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 14, 2016 Share Posted July 14, 2016 Hi, For now try, UniMenuButton1->ClientEvents->ExtEvents ... click fn: function click(sender, e, eOpts) { sender.maybeShowMenu() } Best regards. Quote Link to comment Share on other sites More sharing options...
Beginner Posted July 15, 2016 Author Share Posted July 15, 2016 Thank you for you help How about set width popupmenu equal width unimenubutton on click? Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2016 Share Posted July 15, 2016 How about set width popupmenu equal width unimenubutton on click? For now try, UniMenuButton1->ClientEvents->ExtEvents-> afterrender fn: function afterrender(sender, eOpts) { Ext.onReady(function(){ if (sender.menu){ sender.menu.setWidth(sender.width) } }) } Quote Link to comment Share on other sites More sharing options...
Beginner Posted July 15, 2016 Author Share Posted July 15, 2016 For now try, UniMenuButton1->ClientEvents->ExtEvents-> afterrender fn: function afterrender(sender, eOpts) { Ext.onReady(function(){ if (sender.menu){ sender.menu.setWidth(sender.width) } }) } Delphi Developer Not work this method I try Quote Link to comment Share on other sites More sharing options...
Sherzod Posted July 15, 2016 Share Posted July 15, 2016 Then can you try this approach?: click fn: function click(sender, e, eOpts) { sender.maybeShowMenu(); if (sender.menu) { sender.menu.setWidth(sender.getWidth()); } } arrowClick fn: function arrowclick(sender, e, eOpts) { if (sender.menu) { sender.menu.setWidth(sender.getWidth()); } } Quote Link to comment Share on other sites More sharing options...
Beginner Posted July 15, 2016 Author Share Posted July 15, 2016 Thanks again for your help This work function click(sender, e, eOpts){ if (sender.menu) { sender.menu.setWidth(sender.getWidth()); sender.maybeShowMenu(); }} 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.