picyka Posted April 11, 2021 Posted April 11, 2021 It would be like in an item of UniButtonItems (in a panel) to call a UniPopupMenu Quote
Sherzod Posted April 11, 2021 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
picyka Posted April 11, 2021 Author 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
Hayri ASLAN Posted April 11, 2021 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
picyka Posted April 11, 2021 Author 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
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.