Sherzod Posted July 14, 2016 Posted July 14, 2016 Hi, For now try, UniMenuButton1->ClientEvents->ExtEvents ... click fn: function click(sender, e, eOpts) { sender.maybeShowMenu() } Best regards. Quote
Beginner Posted July 15, 2016 Author Posted July 15, 2016 Thank you for you help How about set width popupmenu equal width unimenubutton on click? Quote
Sherzod Posted July 15, 2016 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
Beginner Posted July 15, 2016 Author 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
Sherzod Posted July 15, 2016 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
Beginner Posted July 15, 2016 Author 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
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.