Jump to content

Recommended Posts

Posted
2 hours ago, picyka said:

It would be like in an item of UniButtonItems (in a panel) to call a UniPopupMenu

Hello,

Can you please explain in more detail?

Posted
4 hours ago, Sherzod said:

Hello,

Can you please explain in more detail?

I have a panel with a button (UniButtoItems), I would like when you click on it, in the UniPanelToolClick event to open the TUniPopupMenu peasant

Posted
41 minutes ago, picyka said:

I have a panel with a button (UniButtoItems), I would like when you click on it, in the UniPanelToolClick event to open the TUniPopupMenu peasant

Hello

Please use below solution

type
  TXPopupMenu = class(TUniPopupMenu)

  end;

procedure TMainForm.UniFormToolClick(Sender: TUniCustomButtonItem);
begin
  with TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface do
  begin
    JSCall('showBy', [JSStatement(Sender.JSName)]);
  end;
end;

 

  • Like 1
Posted
4 minutos atrás, Hayri ASLAN disse:

Olá

Por favor, use a solução abaixo


type
  TXPopupMenu = class(TUniPopupMenu)

  end;

procedure TMainForm.UniFormToolClick(Sender: TUniCustomButtonItem);
begin
  with TXPopupMenu(UniPopupMenu1).MenuControl.JSInterface do
  begin
    JSCall('showBy', [JSStatement(Sender.JSName)]);
  end;
end;

 

Very good, works, thanks

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...