Jump to content

UniButtonItems


picyka

Recommended Posts

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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