Jump to content

Recommended Posts

Posted

Hi,

 

For now try,

 

UniMenuButton1->ClientEvents->ExtEvents ... click fn:

function click(sender, e, eOpts)
{
    sender.maybeShowMenu()
}

Best regards.

Posted

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)
        }
    })
}
Posted

 

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

Posted

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());
  }
}
Posted

Thanks again for your help

 

This work

 

function click(sender, e, eOpts)
{
  if (sender.menu) {
      sender.menu.setWidth(sender.getWidth());

  sender.maybeShowMenu();
  }
}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...