picyka Posted April 11, 2021 Share Posted April 11, 2021 It would be like in an item of UniButtonItems (in a panel) to call a UniPopupMenu Quote Link to comment Share on other sites More sharing options...
Sherzod Posted April 11, 2021 Share Posted April 11, 2021 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? Quote Link to comment Share on other sites More sharing options...
picyka Posted April 11, 2021 Author Share Posted April 11, 2021 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 Quote Link to comment Share on other sites More sharing options...
Hayri ASLAN Posted April 11, 2021 Share Posted April 11, 2021 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; 1 Quote Link to comment Share on other sites More sharing options...
picyka Posted April 11, 2021 Author Share Posted April 11, 2021 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 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.